public class Path extends java.lang.Object implements Chain.Tickable, IPath
| Modifier and Type | Method and Description |
|---|---|
Path |
attach(IPiece cp_start,
IPiece cp_end,
IConnector out,
IConnector in,
PathType type_out,
PathType type_in)
Create Path object from start Piece object and end Piece object.
|
Path |
detach() |
ClassEnvelope |
getConnectionClass()
Return class parameter of this path instance.
|
IConnector |
getInConnector() |
boolean |
getOut(IPiece piece) |
IConnector |
getOutConnector() |
PathType |
getPathType() |
ActorManager.IStatusHandler<IPath> |
getStatusHandler() |
int |
getTickInterval() |
ClassEnvelope |
setConnectionClass(ClassEnvelope _cls) |
Path |
setStatusHandler(ActorManager.IStatusHandler<IPath> h) |
void |
start() |
int |
tick(Packet packet) |
public Path attach(IPiece cp_start, IPiece cp_end, IConnector out, IConnector in, PathType type_out, PathType type_in)
IPathpublic IConnector getOutConnector()
getOutConnector in interface IPathpublic IConnector getInConnector()
public PathType getPathType()
getPathType in interface IPathpublic int tick(Packet packet)
tick in interface Chain.Tickablepublic int getTickInterval()
getTickInterval in interface Chain.Tickablepublic Path setStatusHandler(ActorManager.IStatusHandler<IPath> h)
setStatusHandler in interface IPathpublic ActorManager.IStatusHandler<IPath> getStatusHandler()
public ClassEnvelope setConnectionClass(ClassEnvelope _cls)
setConnectionClass in interface IPathpublic ClassEnvelope getConnectionClass()
IPathgetConnectionClass in interface IPath