org.jadv.events
Class ClientEvent

java.lang.Object
  |
  +--org.jadv.events.Event
        |
        +--org.jadv.events.ClientEvent

public class ClientEvent
extends Event

This event handles an event from the client.

Author:
neitzel

Field Summary
(package private)  ReceivedEvent _evt
           
 
Fields inherited from class org.jadv.events.Event
_NEXT
 
Constructor Summary
ClientEvent(ReceivedEvent evt)
           
 
Method Summary
 void doEvent()
          Do the different Events, that can come from the player ...
 void markBad()
          markBad() Mark an Event as bad.
 void sendEventBack(JAdvEvent event)
          Sends an Event back to the client which sends us this event
 
Methods inherited from class org.jadv.events.Event
findObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_evt

ReceivedEvent _evt
Constructor Detail

ClientEvent

public ClientEvent(ReceivedEvent evt)
Method Detail

doEvent

public void doEvent()
Do the different Events, that can come from the player ...

Specified by:
doEvent in class Event

markBad

public void markBad()
Description copied from class: Event
markBad() Mark an Event as bad. This means: This event wasn't finished in time. If possible, something should be done (e.g. turning the Hearbeat of an Object off, Stop a timer, ... Maybe writing some Message to the developer!

Specified by:
markBad in class Event

sendEventBack

public void sendEventBack(JAdvEvent event)
Sends an Event back to the client which sends us this event

Parameters:
event - - Event to send back