|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
vooga.gameEngine.event.NetworkEvent
public class NetworkEvent
A subclass of EventObject
used for any EventObject
s
which need to be broadcast over the network in a networked instance of a
VOOGA game.
NetworkListener
,
NetworkController
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
NetworkEvent(java.lang.Object source)
Default constructor for NetworkEvent s. |
Method Summary | |
---|---|
int |
getFiringPlayerNumber()
Getter method used to determine the player who originally fired this event. |
void |
setFiringPlayerNumber(int playerNumber)
Sets the player ID of the player firing this event so that it can be identified after being broadcast on the network. |
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 |
---|
public NetworkEvent(java.lang.Object source)
NetworkEvent
s.
source
- The Object
from which this event was firedMethod Detail |
---|
public void setFiringPlayerNumber(int playerNumber)
playerNumber
- The player number of the player originally firing this event.public int getFiringPlayerNumber()
NetworkEvent
or -1 if no player number was ever
added to this Event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |