org.vizzini.game.boardgame.chess.event
Class CheckEvent

java.lang.Object
  extended by org.vizzini.game.boardgame.chess.event.CheckEvent

public class CheckEvent
extends Object

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

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
CheckEvent()
          Construct this object.
CheckEvent(IAgent agent)
          Construct this object with the given parameter.
 
Method Summary
 IAgent getAgent()
          Return the agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckEvent

public CheckEvent()
Construct this object.

Since:
v0.3

CheckEvent

public CheckEvent(IAgent agent)
Construct this object with the given parameter.

Parameters:
agent - Agent who is in check.
Since:
v0.3
Method Detail

getAgent

public IAgent getAgent()
Return the agent.

Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02