Epok Engine

EPOK RUNTIME

epok::SpriteLocomotion2DComponent::select_animation

Method · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Method

Performs `select animation` as part of configurable skeletal and sprite locomotion drivers with extensible selection and shared motor samples.

Belongs to
epok::SpriteLocomotion2DComponent
Header
character_animation.hpp
Overloads
1

Declaration

virtual
Declaration
virtual LocomotionSelection select_animation(CharacterMotionSample2D motion,LocomotionState previous,bool finished)

Performs `select animation` as part of configurable skeletal and sprite locomotion drivers with extensible selection and shared motor samples.

ParameterTypeMeaning
motionCharacterMotionSample2DNot documented; consult the linked header.
previousLocomotionStateNot documented; consult the linked header.
finishedboolNot documented; consult the linked header.

Returns: LocomotionSelection. Consult the linked header for its meaning.

Example sketch

C++ example
#include "character_animation.hpp"

// Assume these named values have been initialized with valid data:
// CharacterMotionSample2D motion
// LocomotionState previous
// bool finished

epok::SpriteLocomotion2DComponent& object = /* obtain a valid instance */;

auto result = object.select_animation(motion, previous, finished);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/character_animation.hpp:169

Related members