org.moyoman.comm.client
Class EndOfGameEvent

java.lang.Object
  |
  +--org.moyoman.comm.client.EndOfGameEvent

public class EndOfGameEvent
extends Object

This class is used to store data that is sent to EndOfGameListener objects.


Field Summary
private  GameRecord gameRecord
          The record of the game.
private  Player player
          The player for whom the end of game event occurred.
 
Constructor Summary
EndOfGameEvent(Player p, GameRecord gr)
          Create an EndOfGameEvent object.
 
Method Summary
 GameRecord getGameRecord()
          Get the game record.
 Player getPlayer()
          Get the player.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

player

private Player player
The player for whom the end of game event occurred.


gameRecord

private GameRecord gameRecord
The record of the game.

Constructor Detail

EndOfGameEvent

public EndOfGameEvent(Player p,
                      GameRecord gr)
Create an EndOfGameEvent object.

Parameters:
p - The player
gr - The game record.
Method Detail

getPlayer

public Player getPlayer()
Get the player.

Returns:
A Player object.

getGameRecord

public GameRecord getGameRecord()
Get the game record.

Returns:
A GameRecord object.