spellcast.event
Class GameUpdateEvent

java.lang.Object
  extended by spellcast.event.GameUpdateEvent
All Implemented Interfaces:
java.io.Serializable, GameEvent

public class GameUpdateEvent
extends java.lang.Object
implements GameEvent, java.io.Serializable

A Game Update Event contains the details of what has changed in the game. This is used to update the client's state.

PropertyChangeEvent's source is transient so we take a copy and store it in the source member variable.

Author:
Barrie Treloar
See Also:
Serialized Form

Constructor Summary
GameUpdateEvent(java.beans.PropertyChangeEvent event)
          Create an GameUpdateEvent for the property that changed on the server.
 
Method Summary
 java.beans.PropertyChangeEvent getEvent()
          Get the value of event.
 Id getSource()
          Get the value of source.
 void setEvent(java.beans.PropertyChangeEvent v)
          Set the value of event.
 void setSource(Id v)
          Set the value of source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameUpdateEvent

public GameUpdateEvent(java.beans.PropertyChangeEvent event)
Create an GameUpdateEvent for the property that changed on the server. The source indicates which server object changed and the event is the details of that change.

Method Detail

getEvent

public java.beans.PropertyChangeEvent getEvent()
Get the value of event.

Returns:
value of event.

setEvent

public void setEvent(java.beans.PropertyChangeEvent v)
Set the value of event.

Parameters:
v - Value to assign to event.

getSource

public Id getSource()
Get the value of source.

Returns:
value of source.

setSource

public void setSource(Id v)
Set the value of source.

Parameters:
v - Value to assign to source.


Copyright © 2001-2005 Spellcast. All Rights Reserved.