com.springrts.ai.oo
Class Game
java.lang.Object
com.springrts.ai.oo.Game
- All Implemented Interfaces:
- Comparable<Game>
public class Game
- extends Object
- implements Comparable<Game>
compareTo
public int compareTo(Game other)
- Specified by:
compareTo
in interface Comparable<Game>
equals
public boolean equals(Object otherObject)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getCurrentFrame
public int getCurrentFrame()
- Deprecated.
- Returns the current game time measured in frames (the
simulation runs at 30 frames per second at normal speed)
This should not be used, as we get the frame from the SUpdateEvent.
getAiInterfaceVersion
public int getAiInterfaceVersion()
getMyTeam
public int getMyTeam()
getMyAllyTeam
public int getMyAllyTeam()
getPlayerTeam
public int getPlayerTeam(int playerId)
getTeamSide
public String getTeamSide(int otherTeamId)
isExceptionHandlingEnabled
public boolean isExceptionHandlingEnabled()
isDebugModeEnabled
public boolean isDebugModeEnabled()
getMode
public int getMode()
isPaused
public boolean isPaused()
getSpeedFactor
public float getSpeedFactor()
getSetupScript
public String getSetupScript()