vooga.gameEngine.event
Class BroadcastEvent

java.lang.Object
  extended by java.util.EventObject
      extended by vooga.gameEngine.event.NetworkEvent
          extended by vooga.gameEngine.event.BroadcastEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EndLevelEvent, StartLevelEvent

public class BroadcastEvent
extends NetworkEvent

Subclass of NetworkEvent used to mark an event which should be broadcast to the same game object regardless of which player's machine the event is sent from or received on. This may be useful for AbstractGame classes within the VOOGA framework.

Author:
Geoffrey Lawler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BroadcastEvent(java.lang.Object source)
          Default constructor for a BroadcastEvent
 
Method Summary
 
Methods inherited from class vooga.gameEngine.event.NetworkEvent
getFiringPlayerNumber, setFiringPlayerNumber
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BroadcastEvent

public BroadcastEvent(java.lang.Object source)
Default constructor for a BroadcastEvent

Parameters:
source - The object firing this event on the original machine it was fired from