cz.cuni.amis.pogamut.ut2004.teamcomm.bot
Class TCEvents

Package class diagram package TCEvents
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.teamcomm.bot.TCEvents

public class TCEvents
extends Object

Listens to IWorldView for TCControlMessage descendant events Intended to be subclassed and appropriate method(s) #tcControlServerAlive(TagGameStart) overridden.

Default state: DISABLED, must be enableTCEvents()ed manually in order to receive callbacks.

Author:
Jimmy

Field Summary
protected  boolean enabled
           
protected  cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<TCControlServerAlive> tcControlServerAliveListener
           
protected  cz.cuni.amis.pogamut.base.communication.worldview.IWorldView worldView
           
 
Constructor Summary
TCEvents(cz.cuni.amis.pogamut.base.communication.worldview.IWorldView worldView)
           
 
Method Summary
 void disableTCEvents()
           
 void enableTCEvents()
           
 void tcControlServerAlive(TCControlServerAlive event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

protected boolean enabled

worldView

protected cz.cuni.amis.pogamut.base.communication.worldview.IWorldView worldView

tcControlServerAliveListener

protected cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<TCControlServerAlive> tcControlServerAliveListener
Constructor Detail

TCEvents

public TCEvents(cz.cuni.amis.pogamut.base.communication.worldview.IWorldView worldView)
Method Detail

enableTCEvents

public void enableTCEvents()

disableTCEvents

public void disableTCEvents()

tcControlServerAlive

public void tcControlServerAlive(TCControlServerAlive event)


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.