org.vizzini.game.event
Class GameEvent

java.lang.Object
  extended by org.vizzini.game.event.GameEvent
All Implemented Interfaces:
IEvent

public class GameEvent
extends Object
implements IEvent

Provides an event for game changes. This class is immutable so that listeners can't inadvertantly alter instances.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
GameEvent(boolean isGameOver, IAgent winner)
          Construct this object with the given parameter.
 
Method Summary
 IAgent getWinner()
          Return the winner.
 boolean isGameOver()
          Return true if the game is over.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameEvent

public GameEvent(boolean isGameOver,
                 IAgent winner)
Construct this object with the given parameter.

Parameters:
isGameOver - Flag indicating if the game is over.
Since:
v0.1
Method Detail

isGameOver

public boolean isGameOver()
Return true if the game is over.

Since:
v0.1

getWinner

public IAgent getWinner()
Return the winner.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02