roboplayer.core.memory
Class GameStateInfo
java.lang.Object
|
+--roboplayer.core.memory.GameStateInfo
- All Implemented Interfaces:
- HearListener
- public class GameStateInfo
- extends java.lang.Object
- implements HearListener
This class keeps information about state of the game.
The state is determited by listening to audio command
- Version:
- 1.0
- Author:
- Krzysztof Langner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameStateInfo
public GameStateInfo(Body body,
char side)
- Constructor
onHear
public void onHear(java.lang.String msg)
- This function looks for referee message
- Specified by:
onHear
in interface HearListener
isBeforeKickOff
public boolean isBeforeKickOff()
isTimeOver
public boolean isTimeOver()
isPlayOn
public boolean isPlayOn()
isMyFreeKick
public boolean isMyFreeKick()
isOpponentFreeKick
public boolean isOpponentFreeKick()
isDrop_Ball
public boolean isDrop_Ball()
isPlaying
public boolean isPlaying()