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

Method setLastError

bwapi/Shared/GameShared.cpp:74–79  ·  view source on GitHub ↗

--------------------------------------------- SET LAST ERROR ---------------------------------------------

Source from the content-addressed store, hash-verified

72 }
73 //--------------------------------------------- SET LAST ERROR ---------------------------------------------
74 bool GameImpl::setLastError(BWAPI::Error e) const
75 {
76 // implies that an error has occured
77 lastError = e;
78 return e == Errors::None;
79 }
80 //--------------------------------------------- CAN BUILD HERE ---------------------------------------------
81 bool GameImpl::canBuildHere(TilePosition position, UnitType type, Unit builder, bool checkExplored)
82 {

Callers 15

setScreenPositionMethod · 0.95
pingMinimapMethod · 0.95
enableFlagMethod · 0.95
pauseGameMethod · 0.95
resumeGameMethod · 0.95
leaveGameMethod · 0.95
restartGameMethod · 0.95
setAllianceMethod · 0.95
setVisionMethod · 0.95
getRegionAtMethod · 0.95
setRevealAllMethod · 0.95
getRegionAtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected