A* Pathfinding Project  4.1.0
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
TurnBasedManager Class Reference

Public Types

enum  State { SelectUnit, SelectTarget, Move }
 

Public Attributes

LayerMask layerMask
 
float movementSpeed
 
GameObject nodePrefab
 
State state = State.SelectUnit
 

Private Member Functions

void Awake ()
 
void DestroyPossibleMoves ()
 
void GeneratePossibleMoves (TurnBasedAI unit)
 
GetByRay< T > (Ray ray)
 
void HandleButtonUnderRay (Ray ray)
 
IEnumerator MoveToNode (TurnBasedAI unit, GraphNode node)
 
void Select (TurnBasedAI unit)
 
void Start ()
 
void Update ()
 

Static Private Member Functions

static IEnumerator MoveAlongPath (TurnBasedAI unit, ABPath path, float speed)
 Interpolates the unit along the path.
 

Private Attributes

EventSystem eventSystem
 
List< GameObject > possibleMoves = new List<GameObject>()
 
TurnBasedAI selected
 

Member Enumeration Documentation

enum State
Enumerator:
SelectUnit 
SelectTarget 
Move 

Member Function Documentation

void Awake ( )
private
void DestroyPossibleMoves ( )
private
void GeneratePossibleMoves ( TurnBasedAI  unit)
private
T GetByRay< T > ( Ray  ray)
private
Type Constraints
T :class 
void HandleButtonUnderRay ( Ray  ray)
private
static IEnumerator MoveAlongPath ( TurnBasedAI  unit,
ABPath  path,
float  speed 
)
staticprivate

Interpolates the unit along the path.

IEnumerator MoveToNode ( TurnBasedAI  unit,
GraphNode  node 
)
private
void Select ( TurnBasedAI  unit)
private
void Start ( )
private
void Update ( )
private

Member Data Documentation

EventSystem eventSystem
private
LayerMask layerMask
float movementSpeed
GameObject nodePrefab
List<GameObject> possibleMoves = new List<GameObject>()
private
TurnBasedAI selected
private
State state = State.SelectUnit

The documentation for this class was generated from the following file: