File size: 886 Bytes
24b81cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
/**@class HandStableState
* @brief represents stable state (i.e. the basic states that the fsm will spend the most time in)
**/
class HandStableState extends HandStateBase
{
int m_AnimState;
void HandStableState (Man player = NULL, HandStateBase parent = NULL, int anim_state = -1) { m_AnimState = anim_state; }
void SyncAnimState () { }
override void OnEntry (HandEventBase e)
{
super.OnEntry(e);
SyncAnimState();
//m_weapon.OnStableStateEntry();
}
override void OnUpdate (float dt)
{
super.OnUpdate(dt);
SyncAnimState();
}
override void OnAbort (HandEventBase e)
{
super.OnAbort(e);
}
override void OnExit (HandEventBase e)
{
//m_weapon.ResetWeaponAnimState();
super.OnExit(e);
}
override bool IsIdle () { return true; }
int GetCurrentStateID () { return 0; }
/// query for entity in hands
bool HasEntityInHands () { return false; }
};
|