atavism.server.events
Class RoadEvent
java.lang.Object
atavism.server.engine.Event
atavism.server.events.RoadEvent
- All Implemented Interfaces:
- EventParser
public class RoadEvent
- extends Event
sends the client information about a road
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 |
RoadEvent
public RoadEvent()
RoadEvent
public RoadEvent(AOByteBuffer buf,
ClientConnection con)
RoadEvent
public RoadEvent(Road road)
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