Question about NumStateBits in player.h
by Walter Yoon · in Torque Game Engine · 08/17/2005 (5:15 pm) · 2 replies
In player.h, there is the following enumeration:
Does this mean that each ActionState requires its own bit? Or does it mean that the default maximum number of ActionStates is 2^3?
enum ActionState {
NullState,
MoveState,
RecoverState,
NumStateBits = 3
};Does this mean that each ActionState requires its own bit? Or does it mean that the default maximum number of ActionStates is 2^3?
#2
08/18/2005 (5:06 pm)
Well, earlier I did find another NumStateBits definition in shapeBase.h, but it wasn't clear to me whether the definition in player.h would work the same way. I had some previous mixups regarding the three different meanings of "trigger" in Torque, and I'd like to avoid making a similar mistake again for this situation.
Associate Kyle Carter