cz.cuni.amis.pogamut.ut2004.communication.translator.server.state
Class PlayerListState

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.AbstractServerFSMState<InfoMessage,CONTEXT>
      extended by cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.ServerListState<Player,TranslatorContext>
          extended by cz.cuni.amis.pogamut.ut2004.communication.translator.server.state.PlayerListState
All Implemented Interfaces:
IFSMState<InfoMessage,TranslatorContext>

public class PlayerListState
extends ServerListState<Player,TranslatorContext>

Takes care of the player list. It stores them inside a List object and when END message comes it sends them to the world view via PlayerListObtained event.

Last state of the handshake - we switch from this state to the ConfigureMessageExpectedState.


Constructor Summary
PlayerListState()
           
 
Method Summary
protected  void innerStateSymbol(TranslatorContext context, InfoMessage symbol)
           
 void stateLeaving(TranslatorContext context, IFSMState<InfoMessage,TranslatorContext> toState, InfoMessage symbol)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.ServerListState
getList, init, newList, restart, stateEntering
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.translator.server.support.AbstractServerFSMState
stateSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayerListState

public PlayerListState()
Method Detail

innerStateSymbol

protected void innerStateSymbol(TranslatorContext context,
                                InfoMessage symbol)
Overrides:
innerStateSymbol in class ServerListState<Player,TranslatorContext>

stateLeaving

public void stateLeaving(TranslatorContext context,
                         IFSMState<InfoMessage,TranslatorContext> toState,
                         InfoMessage symbol)
Specified by:
stateLeaving in interface IFSMState<InfoMessage,TranslatorContext>
Overrides:
stateLeaving in class ServerListState<Player,TranslatorContext>