Package org.rspeer.game.web.path
Class WebPath
- java.lang.Object
-
- org.rspeer.game.web.path.WebPath
-
public class WebPath extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intfailed
-
Constructor Summary
Constructors Constructor Description WebPath(PlayerContext ctx, List<WebSegment> segments, Position destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Graphics2D g)PlayerContextgetContext()PositiongetDestination()List<WebSegment>getSegments()booleanisValid()booleanshouldInvalidateForArea(Area area)booleanshouldInvalidateForDestination(Position position)voidstep()
-
-
-
Constructor Detail
-
WebPath
public WebPath(PlayerContext ctx, List<WebSegment> segments, Position destination)
-
-
Method Detail
-
step
public void step()
-
getSegments
public List<WebSegment> getSegments()
-
getDestination
public Position getDestination()
-
isValid
public boolean isValid()
-
shouldInvalidateForDestination
public boolean shouldInvalidateForDestination(Position position)
-
shouldInvalidateForArea
public boolean shouldInvalidateForArea(Area area)
-
debug
public void debug(Graphics2D g)
-
getContext
public PlayerContext getContext()
-
-