MCPcopy Create free account
hub / github.com/bwapi/bwapi / isQueued

Method isQueued

bwapi/BWAPILIB/UnitCommand.cpp:333–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 return -1;
332 }
333 bool UnitCommand::isQueued() const
334 {
335 if ( type == UnitCommandTypes::Attack_Move ||
336 type == UnitCommandTypes::Attack_Unit ||
337 type == UnitCommandTypes::Move ||
338 type == UnitCommandTypes::Patrol ||
339 type == UnitCommandTypes::Hold_Position ||
340 type == UnitCommandTypes::Stop ||
341 type == UnitCommandTypes::Follow ||
342 type == UnitCommandTypes::Gather ||
343 type == UnitCommandTypes::Return_Cargo ||
344 type == UnitCommandTypes::Repair ||
345 type == UnitCommandTypes::Load ||
346 type == UnitCommandTypes::Unload_All ||
347 type == UnitCommandTypes::Unload_All_Position ||
348 type == UnitCommandTypes::Right_Click_Position ||
349 type == UnitCommandTypes::Right_Click_Unit )
350 return !!extra;
351 return false;
352 }
353 bool UnitCommand::operator==(const UnitCommand& other) const
354 {
355 return std::tie(type, target, x, y, extra) == std::tie(other.type, other.target, other.x, other.y, other.extra);

Callers 4

addMethod · 0.80
executeCommandMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected