|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.ClientEventQueue
This is a singleton used by the client to store events that should be transfered to the server in the next transfer.
An event can be death, firing,...
The queue can contain events for different clients running in one VM.
Method Summary | |
void |
add(Event event)
Adds an event to the queue. |
void |
clear()
Clears the queue. |
EventDataContainer |
getEvents(int clientID)
Gets all events sheduled by a client. |
static ClientEventQueue |
getInstance()
Returns the one and only instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ClientEventQueue getInstance()
public void add(Event event)
event
- Event the event to addpublic void clear()
public EventDataContainer getEvents(int clientID)
clientID
- int the ID of the client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |