Class BuildingAttackDistanceHandler
Inheritance
BuildingAttackDistanceHandler
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class BuildingAttackDistanceHandler : IAttackDistanceHandler
Fields
unitStoppingDistance
Declaration
public FloatRange unitStoppingDistance
Field Value
Properties
Declaration
public MovementFormationSelector MovementFormation { get; }
Property Value
Type |
Description |
MovementFormationSelector |
|
Methods
GetStoppingDistance(IEntity, Boolean, Boolean)
Declaration
public float GetStoppingDistance(IEntity target, bool min = true, bool onProgressEnableTest = false)
Parameters
Type |
Name |
Description |
IEntity |
target |
|
Boolean |
min |
|
Boolean |
onProgressEnableTest |
|
Returns
Type |
Description |
System.Single |
|
Init(IGameManager, IAttackComponent)
Declaration
public void Init(IGameManager gameMgr, IAttackComponent source)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IAttackComponent |
source |
|
IsTargetInRange(Vector3, TargetData<IFactionEntity>, Boolean)
Declaration
public bool IsTargetInRange(Vector3 attackPosition, TargetData<IFactionEntity> target, bool onProgressEnableTest = false)
Parameters
Type |
Name |
Description |
Vector3 |
attackPosition |
|
TargetData<IFactionEntity> |
target |
|
Boolean |
onProgressEnableTest |
|
Returns
Implements