atavism.agis.events
Class NewQuestStateEvent
java.lang.Object
atavism.server.engine.Event
atavism.agis.events.NewQuestStateEvent
- All Implemented Interfaces:
- EventParser
public class NewQuestStateEvent
- extends Event
the mobserver made a new quest state, probably a user accepted a quest.
so now we serialize and give the world server the quest state object
so it can attach it to the user object
Methods inherited from class atavism.server.engine.Event |
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
questStateData
protected byte[] questStateData
NewQuestStateEvent
public NewQuestStateEvent()
NewQuestStateEvent
public NewQuestStateEvent(AOByteBuffer buf,
ClientConnection con)
NewQuestStateEvent
public NewQuestStateEvent(AgisMob player,
QuestState questState)
getName
public java.lang.String getName()
- Specified by:
getName
in class Event
getData
public byte[] getData()
setData
public void setData(byte[] questStateData)
toBytes
public AOByteBuffer toBytes()
- Specified by:
toBytes
in class Event
parseBytes
public void parseBytes(AOByteBuffer buf)
- Description copied from class:
Event
- load this event from the passed in buffer
called by the constructor
- Specified by:
parseBytes
in interface EventParser
- Specified by:
parseBytes
in class Event