Project Hoshimi Documented Class Library
MoveTo Method (to)
NamespacesPH.CommonMoveableMoveTo(Point)
Use this method to move your Moveable
Declaration Syntax
C#Visual BasicVisual C++
public bool MoveTo(
	Point to
)
Public Function MoveTo ( _
	to As Point _
) As Boolean
public:
bool MoveTo(
	Point to
)
Parameters
to (Point)
POint where you want to go
Return Value
If movement is possible, return true.
Remarks
When you call this method, Game Engine calculate of points of the path to go to 'to' Point. If it is impossible (not in a vessel), it set state to WaitingOrders and return false. If path is too long (ie greater than PH.Common.Utils.MaxPointsPath, see config file), , it set state to WaitingOrders and return false. Either, movement start next turn.

Assembly: PH.Common (Module: PH.Common) Version: 6.0.0.0