Inherits Game.
|
| TCGame () |
|
virtual | ~TCGame () |
|
void | setState (torchcraft::State *s) |
|
bool | isWalkable (int walkX, int walkY) const override |
|
int | getGroundHeight (int tileX, int tileY) const override |
|
bool | isBuildable (int tileX, int tileY, bool includeBuildings=false) const override |
|
BWAPI::Unitset const & | getStaticNeutralUnits () const override |
|
BWAPI::TilePosition::list const & | getStartLocations () const override |
|
int | mapWidth () const override |
|
int | mapHeight () const override |
|
BWAPI::Unit | getUnit (int unitID) const override |
|
const BWAPI::Forceset & | getForces () const override |
|
const BWAPI::Playerset & | getPlayers () const override |
|
const BWAPI::Unitset & | getAllUnits () const override |
|
const BWAPI::Unitset & | getMinerals () const override |
|
const BWAPI::Unitset & | getGeysers () const override |
|
const BWAPI::Unitset & | getNeutralUnits () const override |
|
const BWAPI::Unitset & | getStaticMinerals () const override |
|
const BWAPI::Unitset & | getStaticGeysers () const override |
|
const BWAPI::Bulletset & | getBullets () const override |
|
const BWAPI::Position::list & | getNukeDots () const override |
|
const std::list< BWAPI::Event > & | getEvents () const override |
|
BWAPI::Force | getForce (int forceID) const override |
|
BWAPI::Player | getPlayer (int playerID) const override |
|
BWAPI::Unit | indexToUnit (int unitIndex) const override |
|
BWAPI::Region | getRegion (int regionID) const override |
|
BWAPI::GameType | getGameType () const override |
|
int | getLatency () const override |
|
int | getFrameCount () const override |
|
int | getReplayFrameCount () const override |
|
int | getFPS () const override |
| static int bestFPS override { throwNotImplemented(); } More...
|
|
double | getAverageFPS () const override |
|
BWAPI::Position | getMousePosition () const override |
|
bool | getMouseState (BWAPI::MouseButton button) const override |
|
bool | getKeyState (BWAPI::Key key) const override |
|
BWAPI::Position | getScreenPosition () const override |
|
void | setScreenPosition (int x, int y) override |
|
void | pingMinimap (int x, int y) override |
|
bool | isFlagEnabled (int flag) const override |
|
void | enableFlag (int flag) override |
|
BWAPI::Unitset | getUnitsInRectangle (int left, int top, int right, int bottom, const BWAPI::UnitFilter &pred=nullptr) const override |
|
BWAPI::Unit | getClosestUnitInRectangle (BWAPI::Position center, const BWAPI::UnitFilter &pred=nullptr, int left=0, int top=0, int right=999999, int bottom=999999) const override |
|
BWAPI::Unit | getBestUnit (const BWAPI::BestUnitFilter &best, const BWAPI::UnitFilter &pred, BWAPI::Position center=BWAPI::Positions::Origin, int radius=999999) const override |
|
BWAPI::Error | getLastError () const override |
|
bool | setLastError (BWAPI::Error e=BWAPI::Errors::None) const override |
|
std::string | mapFileName () const override |
|
std::string | mapPathName () const override |
|
std::string | mapName () const override |
|
std::string | mapHash () const override |
|
bool | isVisible (int tileX, int tileY) const override |
|
bool | isExplored (int tileX, int tileY) const override |
|
bool | hasCreep (int tileX, int tileY) const override |
|
bool | hasPowerPrecise (int x, int y, BWAPI::UnitType unitType=BWAPI::UnitTypes::None) const override |
|
bool | canBuildHere (BWAPI::TilePosition position, BWAPI::UnitType type, BWAPI::Unit builder=nullptr, bool checkExplored=false) override |
|
bool | canMake (BWAPI::UnitType type, BWAPI::Unit builder=nullptr) const override |
|
bool | canResearch (BWAPI::TechType type, BWAPI::Unit unit=nullptr, bool checkCanIssueCommandType=true) override |
|
bool | canUpgrade (BWAPI::UpgradeType type, BWAPI::Unit unit=nullptr, bool checkCanIssueCommandType=true) override |
|
void | vPrintf (const char *format, va_list args) override |
|
void | vSendTextEx (bool toAllies, const char *format, va_list args) override |
|
bool | isInGame () const override |
|
bool | isMultiplayer () const override |
|
bool | isBattleNet () const override |
|
bool | isPaused () const override |
|
bool | isReplay () const override |
|
void | pauseGame () override |
|
void | resumeGame () override |
|
void | leaveGame () override |
|
void | restartGame () override |
|
void | setLocalSpeed (int speed) override |
|
bool | issueCommand (const BWAPI::Unitset &units, BWAPI::UnitCommand command) override |
|
const BWAPI::Unitset & | getSelectedUnits () const override |
|
BWAPI::Player | self () const override |
|
BWAPI::Player | enemy () const override |
|
BWAPI::Player | neutral () const override |
|
BWAPI::Playerset & | allies () override |
|
BWAPI::Playerset & | enemies () override |
|
BWAPI::Playerset & | observers () override |
|
void | setTextSize (BWAPI::Text::Size::Enum size=BWAPI::Text::Size::Default) override |
|
void | vDrawText (BWAPI::CoordinateType::Enum ctype, int x, int y, const char *format, va_list arg) override |
|
void | drawBox (BWAPI::CoordinateType::Enum ctype, int left, int top, int right, int bottom, BWAPI::Color color, bool isSolid=false) override |
|
void | drawTriangle (BWAPI::CoordinateType::Enum ctype, int ax, int ay, int bx, int by, int cx, int cy, BWAPI::Color color, bool isSolid=false) override |
|
void | drawCircle (BWAPI::CoordinateType::Enum ctype, int x, int y, int radius, BWAPI::Color color, bool isSolid=false) override |
|
void | drawEllipse (BWAPI::CoordinateType::Enum ctype, int x, int y, int xrad, int yrad, BWAPI::Color color, bool isSolid=false) override |
|
void | drawDot (BWAPI::CoordinateType::Enum ctype, int x, int y, BWAPI::Color color) override |
|
void | drawLine (BWAPI::CoordinateType::Enum ctype, int x1, int y1, int x2, int y2, BWAPI::Color color) override |
|
int | getLatencyFrames () const override |
|
int | getLatencyTime () const override |
|
int | getRemainingLatencyFrames () const override |
|
int | getRemainingLatencyTime () const override |
|
int | getRevision () const override |
|
int | getClientVersion () const override |
|
bool | isDebug () const override |
|
bool | isLatComEnabled () const override |
|
void | setLatCom (bool isEnabled) override |
|
bool | isGUIEnabled () const override |
|
void | setGUI (bool enabled) override |
|
int | getInstanceNumber () const override |
|
int | getAPM (bool includeSelects=false) const override |
|
bool | setMap (const char *mapFileName) override |
|
void | setFrameSkip (int frameSkip) override |
|
bool | setAlliance (BWAPI::Player player, bool allied=true, bool alliedVictory=true) override |
|
bool | setVision (BWAPI::Player player, bool enabled=true) override |
|
int | elapsedTime () const override |
|
void | setCommandOptimizationLevel (int level) override |
|
int | countdownTimer () const override |
|
const BWAPI::Regionset & | getAllRegions () const override |
|
BWAPI::Region | getRegionAt (int x, int y) const override |
|
int | getLastEventTime () const override |
|
bool | setRevealAll (bool reveal=true) override |
|
unsigned | getRandomSeed () const override |
|