Class MovementManager
Inheritance
MovementManager
Implements
IPreRunGameService
Assembly: cs.temp.dll.dll
Syntax
public class MovementManager : MonoBehaviour, IMovementManager, IPreRunGameService
Properties
attackMgr
Declaration
protected IAttackManager attackMgr { get; }
Property Value
Type |
Description |
IAttackManager |
|
audioMgr
Declaration
protected IGameAudioManager audioMgr { get; }
Property Value
Type |
Description |
IGameAudioManager |
|
effectObjPool
Declaration
protected IEffectObjectPool effectObjPool { get; }
Property Value
Type |
Description |
IEffectObjectPool |
|
gameMgr
Declaration
protected IGameManager gameMgr { get; }
Property Value
Type |
Description |
IGameManager |
|
gridSearch
Declaration
protected IGridSearchHandler gridSearch { get; }
Property Value
Type |
Description |
IGridSearchHandler |
|
HeightSpecificStoppingDistance
Declaration
public float HeightSpecificStoppingDistance { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
protected IInputManager inputMgr { get; }
Property Value
Type |
Description |
IInputManager |
|
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
MovementTargetEffect
Declaration
public IEffectObject MovementTargetEffect { get; }
Property Value
Type |
Description |
IEffectObject |
|
MvtSystem
Handles connecting the pathfinding system and the RTS Engine movement system.
Declaration
public IMovementSystem MvtSystem { get; }
Property Value
StoppingDistance
Declaration
public float StoppingDistance { get; }
Property Value
Type |
Description |
System.Single |
|
terrainMgr
Declaration
protected ITerrainManager terrainMgr { get; }
Property Value
Type |
Description |
ITerrainManager |
|
Methods
Declaration
public ErrorMessage GeneratePathDestination(IEntity refMvtSource, int amount, Vector3 direction, TargetData<IEntity> target, MovementFormationSelector formationSelector, float offset, MovementSource source, ref List<Vector3> pathDestinations, Func<PathDestinationInputData, Vector3, ErrorMessage> condition = null)
Parameters
Returns
Declaration
public ErrorMessage GeneratePathDestination(IEntity entity, TargetData<IEntity> target, MovementFormationSelector formationSelector, float offset, MovementSource source, ref List<Vector3> pathDestinations, Func<PathDestinationInputData, Vector3, ErrorMessage> condition = null)
Parameters
Returns
Declaration
public ErrorMessage GeneratePathDestination(IReadOnlyList<IEntity> entities, TargetData<IEntity> target, MovementFormationSelector formationSelector, float offset, MovementSource source, ref List<Vector3> pathDestinations, Func<PathDestinationInputData, Vector3, ErrorMessage> condition = null)
Parameters
Returns
GeneratePathDestination(Vector3, Single, IMovementComponent, out Vector3)
Declaration
public ErrorMessage GeneratePathDestination(Vector3 originPosition, float range, IMovementComponent refMvtComp, out Vector3 targetPosition)
Parameters
Type |
Name |
Description |
Vector3 |
originPosition |
|
System.Single |
range |
|
IMovementComponent |
refMvtComp |
|
Vector3 |
targetPosition |
|
Returns
GetRandomMovablePosition(IEntity, Vector3, Single, out Vector3, Boolean)
Declaration
public bool GetRandomMovablePosition(IEntity entity, Vector3 origin, float range, out Vector3 targetPosition, bool playerCommand)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
Vector3 |
origin |
|
System.Single |
range |
|
Vector3 |
targetPosition |
|
Boolean |
playerCommand |
|
Returns
Init(IGameManager)
Declaration
public void Init(IGameManager gameMgr)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IsPositionClear(ref Vector3, IMovementComponent, Boolean)
Declaration
public ErrorMessage IsPositionClear(ref Vector3 targetPosition, IMovementComponent refMvtComp, bool playerCommand)
Parameters
Type |
Name |
Description |
Vector3 |
targetPosition |
|
IMovementComponent |
refMvtComp |
|
Boolean |
playerCommand |
|
Returns
IsPositionClear(ref Vector3, Single, LayerMask, TerrainAreaMask, Boolean)
Declaration
public ErrorMessage IsPositionClear(ref Vector3 targetPosition, float agentRadius, LayerMask navAreaMask, TerrainAreaMask areasMask, bool playerCommand)
Parameters
Type |
Name |
Description |
Vector3 |
targetPosition |
|
System.Single |
agentRadius |
|
LayerMask |
navAreaMask |
|
TerrainAreaMask |
areasMask |
|
Boolean |
playerCommand |
|
Returns
IsPositionReached(Vector3, Vector3)
Declaration
public bool IsPositionReached(Vector3 inputPosition, Vector3 targetPosition)
Parameters
Type |
Name |
Description |
Vector3 |
inputPosition |
|
Vector3 |
targetPosition |
|
Returns
SetPathDestination(SetPathDestinationData<IEntity>)
Declaration
public ErrorMessage SetPathDestination(SetPathDestinationData<IEntity> data)
Parameters
Returns
SetPathDestination(SetPathDestinationData<IReadOnlyList<IEntity>>)
Declaration
public ErrorMessage SetPathDestination(SetPathDestinationData<IReadOnlyList<IEntity>> data)
Parameters
Returns
SetPathDestinationLocal(SetPathDestinationData<IEntity>)
Declaration
public ErrorMessage SetPathDestinationLocal(SetPathDestinationData<IEntity> data)
Parameters
Returns
SetPathDestinationLocal(SetPathDestinationData<IReadOnlyList<IEntity>>)
Declaration
public ErrorMessage SetPathDestinationLocal(SetPathDestinationData<IReadOnlyList<IEntity>> data)
Parameters
Returns
TryGetMovablePosition(Vector3, Single, LayerMask, out Vector3)
Declaration
public bool TryGetMovablePosition(Vector3 center, float radius, LayerMask areaMask, out Vector3 movablePosition)
Parameters
Type |
Name |
Description |
Vector3 |
center |
|
System.Single |
radius |
|
LayerMask |
areaMask |
|
Vector3 |
movablePosition |
|
Returns
Implements
IPreRunGameService