org.vizzini.game.event
Class StateEvent

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

public class StateEvent
extends Object
implements IEvent

Provides an event for state 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
StateEvent(IEnvironment source)
          Construct this object with the given parameter.
StateEvent(IEnvironment source, IAction action)
          Construct this object with the given parameter.
 
Method Summary
 IAction getAction()
          Return the action.
 IEnvironment getSource()
          Return the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateEvent

public StateEvent(IEnvironment source)
Construct this object with the given parameter.

Since:
v0.1

StateEvent

public StateEvent(IEnvironment source,
                  IAction action)
Construct this object with the given parameter.

Parameters:
action - Action which caused this state change.
Since:
v0.1
Method Detail

getAction

public IAction getAction()
Return the action.

Since:
v0.1

getSource

public IEnvironment getSource()
Return the source.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02