atavism.server.plugins
Class WorldManagerClient.MobPathMessageBaseClass
java.lang.Object
atavism.msgsys.Message
atavism.msgsys.SubjectMessage
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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()