Nox Engine
 
Loading...
Searching...
No Matches
Animator::Edge Struct Reference

Defines a transition edge between two animations in the state machine. More...

#include <Animator.h>

Collaboration diagram for Animator::Edge:
Collaboration graph

Public Member Functions

 Edge (std::vector< std::shared_ptr< bool > > conditions)
 Constructs an Edge with a set of transition conditions.
 
const bool canTraverse () const
 Checks if all conditions for traversing this edge are met.
 

Public Attributes

std::vector< std::shared_ptr< bool > > conditions
 

Detailed Description

Defines a transition edge between two animations in the state machine.

Constructor & Destructor Documentation

◆ Edge()

Animator::Edge::Edge ( std::vector< std::shared_ptr< bool > >  conditions)

Constructs an Edge with a set of transition conditions.

Parameters
conditionsA vector of shared pointers to booleans.

Member Function Documentation

◆ canTraverse()

const bool Animator::Edge::canTraverse ( ) const

Checks if all conditions for traversing this edge are met.

Returns
True if the transition can occur, false otherwise.
Here is the call graph for this function:

Member Data Documentation

◆ conditions

std::vector<std::shared_ptr<bool> > Animator::Edge::conditions

A list of conditions that must all be true for this edge to be traversed.


The documentation for this struct was generated from the following files: