Atavism Version 2018.1AGIS API

atavism.agis.events
Class NewQuestStateEvent

java.lang.Object
  extended by atavism.server.engine.Event
      extended by 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


Field Summary
protected  byte[] questStateData
           
 
Constructor Summary
NewQuestStateEvent()
           
NewQuestStateEvent(AgisMob player, QuestState questState)
           
NewQuestStateEvent(AOByteBuffer buf, ClientConnection con)
           
 
Method Summary
 byte[] getData()
           
 java.lang.String getName()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setData(byte[] questStateData)
           
 AOByteBuffer toBytes()
           
 
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
 

Field Detail

questStateData

protected byte[] questStateData
Constructor Detail

NewQuestStateEvent

public NewQuestStateEvent()

NewQuestStateEvent

public NewQuestStateEvent(AOByteBuffer buf,
                          ClientConnection con)

NewQuestStateEvent

public NewQuestStateEvent(AgisMob player,
                          QuestState questState)
Method Detail

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


Copyright © 2018 Dragonsan Studios Sp. z o.o.