com.springrts.ai.oo
Class Game

java.lang.Object
  extended by com.springrts.ai.oo.Game
All Implemented Interfaces:
Comparable<Game>

public class Game
extends Object
implements Comparable<Game>


Method Summary
 int compareTo(Game other)
           
 boolean equals(Object otherObject)
           
 int getAiInterfaceVersion()
           
 int getCurrentFrame()
          Deprecated.  
 int getMode()
           
 int getMyAllyTeam()
           
 int getMyTeam()
           
 int getPlayerTeam(int playerId)
           
 String getSetupScript()
           
 float getSpeedFactor()
           
 String getTeamSide(int otherTeamId)
           
 int hashCode()
           
 boolean isDebugModeEnabled()
           
 boolean isExceptionHandlingEnabled()
           
 boolean isPaused()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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()