Project Hoshimi Documented Class Library
DefendTo Method (to, NTurn)
NamespacesPH.CommonDefenderDefendTo(Point, Int32)
Use this method to defend a location
Declaration Syntax
C#Visual BasicVisual C++
public bool DefendTo(
	Point to,
	int NTurn
)
Public Function DefendTo ( _
	to As Point, _
	NTurn As Integer _
) As Boolean
public:
bool DefendTo(
	Point to, 
	int NTurn
)
Parameters
to (Point)
Point you want to defend
NTurn (Int32)
Number of turn you defend
Return Value
Return always true if state is equal to WaitingOrders AND distance is lower than DefenseDistance
Remarks
Next turn, Game Engine will check for each entities near the botDefender. If distance is lower than DefenseDistance,

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