|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.engine.AbstractGameState
edu.gatech.cs2335.lemmings.engine.EstablishingConnectionState
Class EstablishingConnectionState: This state will load a level, and then wait for a connection to be established. After both of the conditions are met, it will go on to the actual game.
Revision History:
v1.0 (Apr. 15, 2004) - Created the EstablishingConnectionState class
| Constructor Summary | |
EstablishingConnectionState()
Creates a new EstablishingConnectionState instance. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent ae)
This function essentially processes the action event that may have been thrown by the UI. |
boolean |
cleanUp()
This method will perform all of the necessary clean up operations once the object is no longer needed. |
void |
connectTo(java.lang.String hostt,
int portt)
Describe connectTo method here. |
int |
getLemmingCount()
Get the value of lemmingCount. |
void |
host(int portt)
Describe host method here. |
boolean |
initialize()
This method will initialize the state that it belongs to. |
void |
loadLevel(java.lang.String id)
Loads the level with the specified id. |
void |
setLemmingCount(int v)
Set the value of lemmingCount. |
| Methods inherited from class edu.gatech.cs2335.lemmings.engine.AbstractGameState |
getUI, setUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EstablishingConnectionState()
EstablishingConnectionState instance.
| Method Detail |
public boolean initialize()
initialize in class AbstractGameStatepublic boolean cleanUp()
cleanUp in class AbstractGameStatepublic void actionPerformed(java.awt.event.ActionEvent ae)
ae - aepublic int getLemmingCount()
public void setLemmingCount(int v)
v - Value to assign to lemmingCount.
public void connectTo(java.lang.String hostt,
int portt)
connectTo method here.
hostt - a String valueportt - an int valuepublic void host(int portt)
host method here.
portt - an int valuepublic void loadLevel(java.lang.String id)
id - a String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||