|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spellcast.game.Game_Server
public class Game_Server
The Game Server class is the control logic for the Game. It inherits from Game which contains the Data Access methods.
Constructor Summary | |
---|---|
Game_Server(IPC ipc,
java.lang.String gameName)
|
Method Summary | |
---|---|
Game |
getGame()
|
void |
processOkEvent(IPCRequest request)
Process OkEvent. |
void |
propertyChange(java.beans.PropertyChangeEvent pce)
Unless otherwise specified, all property change events are forwarded to all clients |
void |
run()
|
void |
sendMessage(java.lang.String message)
Send a message to everyone. |
void |
sendMessage2(Id id1,
java.lang.String messageForID1,
java.lang.String messageForEveryoneElse)
Send a message to one Id and another message to everyone else. |
void |
sendMessage3(Id id1,
java.lang.String messageForID1,
Id id2,
java.lang.String messageForID2,
java.lang.String messageForEveryoneElse)
Send a message to one Id, a message to another Id, and a message to everyone else. |
void |
start()
Start the Game Server. |
void |
stop()
Stop the Game Server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Game_Server(IPC ipc, java.lang.String gameName)
Method Detail |
---|
public Game getGame()
public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
public void run()
run
in interface java.lang.Runnable
public void processOkEvent(IPCRequest request)
public void start()
public void stop()
isRunning
to false which allows the run
method to terminate. stop
will cause the calling thread
to wait until the Game Server Thread has terminated.
public void sendMessage(java.lang.String message)
public void sendMessage2(Id id1, java.lang.String messageForID1, java.lang.String messageForEveryoneElse)
public void sendMessage3(Id id1, java.lang.String messageForID1, Id id2, java.lang.String messageForID2, java.lang.String messageForEveryoneElse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |