Atavism Version 2018.1AGIS API

atavism.server.events
Class AmbientLightEvent

java.lang.Object
  extended by atavism.server.engine.Event
      extended by atavism.server.events.AmbientLightEvent
All Implemented Interfaces:
EventParser

public class AmbientLightEvent
extends Event

this event contains information about the ambient light. the server usually sends this event to the user when they log in in the loginhandler. it doesnt have an entity_id associated with it because its general information about the world


Constructor Summary
AmbientLightEvent()
           
AmbientLightEvent(AOByteBuffer buf, ClientConnection con)
           
AmbientLightEvent(Color color)
           
 
Method Summary
 Color getAmbientLight()
           
 java.lang.String getName()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setAmbientLight(Color color)
           
 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
 

Constructor Detail

AmbientLightEvent

public AmbientLightEvent()

AmbientLightEvent

public AmbientLightEvent(AOByteBuffer buf,
                         ClientConnection con)

AmbientLightEvent

public AmbientLightEvent(Color color)
Method Detail

setAmbientLight

public void setAmbientLight(Color color)

getAmbientLight

public Color getAmbientLight()

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

getName

public java.lang.String getName()
Specified by:
getName in class Event


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