Hexagon
Loading...
Searching...
No Matches
State Class Referenceabstract

Public Member Functions

virtual void Init (StateMachine machine)
 
void Init ()
 
virtual void OnTransitionToStarted ()
 Called when state becomes the target state of the State Machine. Weight becomes 0. Transition has started.
 
virtual void OnTransitionToFinished ()
 Called when state becomes the current state of the State Machine. Weight becomes 1. Transition has ended.
 
void OnTransitionFromStarted ()
 Called when state starts to lose weight to the target state of the State Machine. Weight becomes 1. Transition has started.
 
virtual void OnTransitionFromFinished ()
 Called when state becomes the previous state of the State Machine. Weight becomes 0. Transition has ended.
 
void OnUpdate ()
 
virtual void OnFixedUpdate ()
 
bool IsPossibleChangeFrom ()
 
bool IsPossibleChangeTo ()
 
virtual void DrawGizmos ()
 
bool IsMachine< TParent > ()
 
StateMachine< TParent > GetMachine< TParent > ()
 

Public Attributes

StateMachine _machine
 
int _type
 

Properties

float ActiveTime [get]
 
float Weight = 1.0f [get, set]
 

Member Function Documentation

◆ DrawGizmos()

virtual void State.DrawGizmos ( )
inlinevirtual

◆ GetMachine< TParent >()

StateMachine< TParent > State.GetMachine< TParent > ( )
inline
Type Constraints
TParent :class 

◆ Init() [1/2]

void State.Init ( )
abstract

◆ Init() [2/2]

virtual void State.Init ( StateMachine machine)
inlinevirtual

◆ IsMachine< TParent >()

bool State.IsMachine< TParent > ( )
inline
Type Constraints
TParent :class 

◆ IsPossibleChangeFrom()

bool State.IsPossibleChangeFrom ( )
abstract

◆ IsPossibleChangeTo()

bool State.IsPossibleChangeTo ( )
abstract

◆ OnFixedUpdate()

virtual void State.OnFixedUpdate ( )
inlinevirtual

◆ OnTransitionFromFinished()

virtual void State.OnTransitionFromFinished ( )
inlinevirtual

Called when state becomes the previous state of the State Machine. Weight becomes 0. Transition has ended.

◆ OnTransitionFromStarted()

void State.OnTransitionFromStarted ( )
abstract

Called when state starts to lose weight to the target state of the State Machine. Weight becomes 1. Transition has started.

◆ OnTransitionToFinished()

virtual void State.OnTransitionToFinished ( )
inlinevirtual

Called when state becomes the current state of the State Machine. Weight becomes 1. Transition has ended.

◆ OnTransitionToStarted()

virtual void State.OnTransitionToStarted ( )
inlinevirtual

Called when state becomes the target state of the State Machine. Weight becomes 0. Transition has started.

◆ OnUpdate()

void State.OnUpdate ( )
abstract

Member Data Documentation

◆ _machine

StateMachine State._machine

◆ _type

int State._type

Property Documentation

◆ ActiveTime

float State.ActiveTime
get

◆ Weight

float State.Weight = 1.0f
getset

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