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

Constructor Summary
GameStateInfo(Body body, char side)
          Constructor
 
Method Summary
 boolean isBeforeKickOff()
           
 boolean isDrop_Ball()
           
 boolean isMyFreeKick()
           
 boolean isOpponentFreeKick()
           
 boolean isPlaying()
           
 boolean isPlayOn()
           
 boolean isTimeOver()
           
 void onHear(java.lang.String msg)
          This function looks for referee message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameStateInfo

public GameStateInfo(Body body,
                     char side)
Constructor

Method Detail

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