Blender V2.61 - r43446
Public Types | Public Member Functions

BL_Action Class Reference

#include <BL_Action.h>

List of all members.

Public Types

enum  { ACT_MODE_PLAY = 0, ACT_MODE_LOOP, ACT_MODE_PING_PONG, ACT_MODE_MAX }
enum  { ACT_IPOFLAG_FORCE = 1, ACT_IPOFLAG_LOCAL = 2, ACT_IPOFLAG_ADD = 4, ACT_IPOFLAG_CHILD = 8 }

Public Member Functions

 BL_Action (class KX_GameObject *gameobj)
 ~BL_Action ()
bool Play (const char *name, float start, float end, short priority, float blendin, short play_mode, float layer_weight, short ipo_flags, float playback_speed)
void Stop ()
bool IsDone ()
void Update (float curtime)
float GetFrame ()
struct bActionGetAction ()
void SetFrame (float frame)
void SetPlayMode (short play_mode)
void SetTimes (float start, float end)

Detailed Description

Definition at line 38 of file BL_Action.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ACT_MODE_PLAY 
ACT_MODE_LOOP 
ACT_MODE_PING_PONG 
ACT_MODE_MAX 

Definition at line 118 of file BL_Action.h.

anonymous enum
Enumerator:
ACT_IPOFLAG_FORCE 
ACT_IPOFLAG_LOCAL 
ACT_IPOFLAG_ADD 
ACT_IPOFLAG_CHILD 

Definition at line 126 of file BL_Action.h.


Constructor & Destructor Documentation

BL_Action::BL_Action ( class KX_GameObject gameobj)
BL_Action::~BL_Action ( )

Definition at line 90 of file BL_Action.cpp.

References game_free_pose().


Member Function Documentation

bAction * BL_Action::GetAction ( ) [read]

Definition at line 237 of file BL_Action.cpp.

References IsDone(), and NULL.

Referenced by BL_ActionManager::GetCurrentAction().

float BL_Action::GetFrame ( )

Definition at line 242 of file BL_Action.cpp.

Referenced by BL_ActionManager::GetActionFrame().

bool BL_Action::IsDone ( )

Whether or not the action is still playing

Definition at line 219 of file BL_Action.cpp.

Referenced by GetAction(), BL_ActionManager::IsActionDone(), and Play().

bool BL_Action::Play ( const char *  name,
float  start,
float  end,
short  priority,
float  blendin,
short  play_mode,
float  layer_weight,
short  ipo_flags,
float  playback_speed 
)
void BL_Action::SetFrame ( float  frame)

Definition at line 247 of file BL_Action.cpp.

References max, and min.

Referenced by BL_ActionManager::SetActionFrame().

void BL_Action::SetPlayMode ( short  play_mode)

Definition at line 259 of file BL_Action.cpp.

Referenced by BL_ActionManager::SetPlayMode().

void BL_Action::SetTimes ( float  start,
float  end 
)

Definition at line 264 of file BL_Action.cpp.

Referenced by BL_ActionManager::SetTimes().

void BL_Action::Stop ( )

Stop playing the action

Definition at line 214 of file BL_Action.cpp.

Referenced by BL_ActionManager::StopAction().

void BL_Action::Update ( float  curtime)

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