com.asdf.test
Class TestGamePlugin

java.lang.Object
  extended by com.asdf.common.Game
      extended by com.asdf.test.TestGamePlugin

public class TestGamePlugin
extends Game

Game for testing purposes


Field Summary
 
Fields inherited from class com.asdf.common.Game
age
 
Constructor Summary
TestGamePlugin()
           
 
Method Summary
 void die()
          Offers the game a chance to notify all players and observers about the imminent destruction of this game.
 void handleRequest(long sessionID, GameRequest request)
          Handle incoming GameRequest.
 void handleResponse(long sessionID, GameResponse response)
          Handle incoming GameResponse.
 
Methods inherited from class com.asdf.common.Game
columnNamesSync, descriptionSync, detailsSync, dieSync, getAccountName, getId, getName, getUserType, handleRequestSync, handleResponseSync, initialize, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestGamePlugin

public TestGamePlugin()
Method Detail

handleRequest

public void handleRequest(long sessionID,
                          GameRequest request)
Description copied from class: Game
Handle incoming GameRequest. Responses may be sent with the send method. A GameRequest is a message from a client, who requests the game to react to his actions.

Parameters:
sessionID - Identifies session on which the message was received
request - GameRequest

handleResponse

public void handleResponse(long sessionID,
                           GameResponse response)
Description copied from class: Game
Handle incoming GameResponse.

Parameters:
sessionID - Identifies session on which the message was received
response - GameResponse

die

public void die()
Description copied from class: Game
Offers the game a chance to notify all players and observers about the imminent destruction of this game.

Specified by:
die in class Game