Atavism Version 2018.1AGIS API

atavism.server.events
Class RoadEvent

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

public class RoadEvent
extends Event

sends the client information about a road


Constructor Summary
RoadEvent()
           
RoadEvent(AOByteBuffer buf, ClientConnection con)
           
RoadEvent(Road road)
           
 
Method Summary
 java.lang.String getName()
           
 java.util.List<Point> getPoints()
           
 java.lang.String getRoadName()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setPoints(java.util.List<Point> points)
           
 void setRoadName(java.lang.String name)
           
 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

RoadEvent

public RoadEvent()

RoadEvent

public RoadEvent(AOByteBuffer buf,
                 ClientConnection con)

RoadEvent

public RoadEvent(Road road)
Method Detail

getName

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

setRoadName

public void setRoadName(java.lang.String name)

getRoadName

public java.lang.String getRoadName()

setPoints

public void setPoints(java.util.List<Point> points)

getPoints

public java.util.List<Point> getPoints()

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.