de.jadv.lib.events.toclient
Class ObjectEvent

java.lang.Object
  |
  +--de.jadv.lib.events.JAdvEvent
        |
        +--de.jadv.lib.events.toclient.ObjectEvent
All Implemented Interfaces:
java.io.Serializable

public class ObjectEvent
extends JAdvEvent

Tells the client, that the player sees an object.

Author:
neitzel
See Also:
Serialized Form

Field Summary
protected  int description
           
protected  java.lang.String objectID
           
protected  java.awt.Point place
           
 
Fields inherited from class de.jadv.lib.events.JAdvEvent
BUFFERSIZE, CODE_AllPlayerStatsEvent, CODE_AttackEvent, CODE_AvailableRacesEvent, CODE_ErrorEvent, CODE_FightEvent, CODE_GetRacesEvent, CODE_InNewLevelEvent, CODE_IsLoggedInEvent, CODE_IsNotLoggedInEvent, CODE_JAdvEvent, CODE_LevelInformationEvent, CODE_LibVersionEvent, CODE_LoginEvent, CODE_MessageEvent, CODE_MoveObjectEvent, CODE_NeedLevelEvent, CODE_NewPlayerEvent, CODE_ObjectAttributesEvent, CODE_ObjectEvent, CODE_ObjectOutEvent, CODE_PlayerIDEvent, CODE_PlayerMoveEvent, CODE_QuitEvent, CODE_RequestLongEvent, CODE_RequestShortEvent, CODE_SendMessageEvent, CODE_ShortPlayerStatsEvent, CODE_SubObjectEvent, CODE_UnknownEvent, CODE_UseObjectEvent, debug, EVENT_CODER_VERSION
 
Constructor Summary
ObjectEvent(java.nio.ByteBuffer buf)
           
ObjectEvent(DataObject obj)
           
ObjectEvent(java.lang.String ObjectID, int Description, java.awt.Point location)
          Constructor for JObjectEvent.
 
Method Summary
 java.nio.ByteBuffer encodeEvent()
           
 int getDescription()
           
 java.awt.Point getLocation()
           
 DataObject getObject()
           
 java.lang.String getObjectID()
           
 int getX()
           
 int getY()
           
 
Methods inherited from class de.jadv.lib.events.JAdvEvent
decodeEvent, encodeEvent, getCreateTime, isNewer, isOlder, readBackground, readString, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectID

protected java.lang.String objectID

description

protected int description

place

protected java.awt.Point place
Constructor Detail

ObjectEvent

public ObjectEvent(java.lang.String ObjectID,
                   int Description,
                   java.awt.Point location)
Constructor for JObjectEvent.


ObjectEvent

public ObjectEvent(DataObject obj)

ObjectEvent

public ObjectEvent(java.nio.ByteBuffer buf)
            throws java.io.IOException
Method Detail

encodeEvent

public java.nio.ByteBuffer encodeEvent()
                                throws java.io.IOException
Specified by:
encodeEvent in class JAdvEvent
java.io.IOException

getObjectID

public java.lang.String getObjectID()

getDescription

public int getDescription()

getLocation

public java.awt.Point getLocation()

getX

public int getX()

getY

public int getY()

getObject

public DataObject getObject()