Atavism Version 2018.1AGIS API

atavism.server.plugins
Class WorldManagerClient.MobPathMessageBaseClass

java.lang.Object
  extended by atavism.msgsys.Message
      extended by atavism.msgsys.SubjectMessage
          extended by atavism.server.plugins.WorldManagerClient.MobPathMessageBaseClass
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WorldManagerClient.MobPathCorrectionMessage, WorldManagerClient.MobPathMessage, WorldManagerClient.MobPathReqMessage
Enclosing class:
WorldManagerClient

public abstract static class WorldManagerClient.MobPathMessageBaseClass
extends SubjectMessage

See Also:
Serialized Form

Field Summary
 
Fields inherited from class atavism.msgsys.SubjectMessage
oid
 
Constructor Summary
WorldManagerClient.MobPathMessageBaseClass()
           
WorldManagerClient.MobPathMessageBaseClass(OID oid, java.lang.Long startTime, java.lang.String interpKind, float speed, java.lang.String terrainString, java.util.List<Point> pathPoints)
           
 
Method Summary
 java.lang.String getInterpKind()
           
protected abstract  MessageType getMobPathMsgType()
           
protected abstract  java.lang.String getMobPathMsgTypeTitle()
           
 java.util.List<Point> getPathPoints()
           
 Point getPositionAtTime(java.lang.Long when)
          Returns the position of the mob at the given time.
 float getSpeed()
           
 long getStartTime()
           
 java.lang.String getTerrainString()
           
 void setInterpKind(java.lang.String interpKind)
           
 void setPathPoints(java.util.List<Point> pathPoints)
           
 void setSpeed(float speed)
           
 void setStartTime(long startTime)
           
 void setTerrainString(java.lang.String terrainString)
           
 AOByteBuffer toBuffer()
           
 java.lang.String toString()
           
 
Methods inherited from class atavism.msgsys.SubjectMessage
getSubject, setSubject
 
Methods inherited from class atavism.msgsys.Message
getEnqueueTime, getMsgId, getMsgType, getSenderName, isRPC, setEnqueueTime, setEnqueueTime, setMsgType, toBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorldManagerClient.MobPathMessageBaseClass

public WorldManagerClient.MobPathMessageBaseClass()

WorldManagerClient.MobPathMessageBaseClass

public WorldManagerClient.MobPathMessageBaseClass(OID oid,
                                                  java.lang.Long startTime,
                                                  java.lang.String interpKind,
                                                  float speed,
                                                  java.lang.String terrainString,
                                                  java.util.List<Point> pathPoints)
Method Detail

getMobPathMsgType

protected abstract MessageType getMobPathMsgType()

getMobPathMsgTypeTitle

protected abstract java.lang.String getMobPathMsgTypeTitle()

toString

public java.lang.String toString()
Overrides:
toString in class SubjectMessage

setStartTime

public void setStartTime(long startTime)

getStartTime

public long getStartTime()

setInterpKind

public void setInterpKind(java.lang.String interpKind)

getInterpKind

public java.lang.String getInterpKind()

setSpeed

public void setSpeed(float speed)

getSpeed

public float getSpeed()

setTerrainString

public void setTerrainString(java.lang.String terrainString)

getTerrainString

public java.lang.String getTerrainString()

setPathPoints

public void setPathPoints(java.util.List<Point> pathPoints)

getPathPoints

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

getPositionAtTime

public Point getPositionAtTime(java.lang.Long when)
Returns the position of the mob at the given time.

Parameters:
when - The time for which the position should be returned.
Returns:
The Point position at the given time. If there are no pathPoints, returns null. If there is just one path point, returns that point. If the time is before the startTime, returns the first point, and if the time is greater than the time of the last point, returns the last point.

toBuffer

public AOByteBuffer toBuffer()


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