mirror of
https://github.com/UberGames/EF2GameSource.git
synced 2025-02-21 11:01:40 +00:00
reformat
This commit is contained in:
parent
66f262fd5f
commit
a52143e29c
1 changed files with 158 additions and 166 deletions
|
@ -40,14 +40,12 @@ class HoldPosition;
|
|||
//
|
||||
// Method of Use: Called From State Machine
|
||||
//--------------------------------------------------------------
|
||||
class HoldPosition : public Behavior
|
||||
{
|
||||
class HoldPosition : public Behavior {
|
||||
public:
|
||||
//------------------------------------
|
||||
// States
|
||||
//------------------------------------
|
||||
public:
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
HOLD_POSITION_HOLD,
|
||||
HOLD_POSITION_TWITCH,
|
||||
HOLD_POSITION_WEAPON_TWITCH,
|
||||
|
@ -55,11 +53,23 @@ class HoldPosition : public Behavior
|
|||
HOLD_POSITION_FAILED
|
||||
} HoldPositionStates_t;
|
||||
|
||||
//------------------------------------
|
||||
// Parameters
|
||||
//------------------------------------
|
||||
private:
|
||||
//-------------------------------------
|
||||
// Public Interface
|
||||
//-------------------------------------
|
||||
CLASS_PROTOTYPE(HoldPosition);
|
||||
|
||||
HoldPosition();
|
||||
~HoldPosition();
|
||||
|
||||
void SetArgs(Event* ev);
|
||||
void AnimDone(Event* ev);
|
||||
|
||||
void Begin(Actor& self);
|
||||
BehaviorReturnCode_t Evaluate(Actor& self);
|
||||
void End(Actor& self);
|
||||
|
||||
// Accessors
|
||||
virtual void Archive(Archiver& arc);
|
||||
|
||||
//-------------------------------------
|
||||
// Internal Functionality
|
||||
|
@ -82,30 +92,14 @@ class HoldPosition : public Behavior
|
|||
BehaviorReturnCode_t evaluateStateWeaponTwitch();
|
||||
void failureStateWeaponTwitch(const str& failureReason);
|
||||
|
||||
|
||||
//-------------------------------------
|
||||
// Public Interface
|
||||
//-------------------------------------
|
||||
public:
|
||||
CLASS_PROTOTYPE( HoldPosition );
|
||||
|
||||
HoldPosition();
|
||||
~HoldPosition();
|
||||
|
||||
void SetArgs ( Event *ev );
|
||||
void AnimDone ( Event *ev );
|
||||
|
||||
void Begin ( Actor &self );
|
||||
BehaviorReturnCode_t Evaluate ( Actor &self );
|
||||
void End ( Actor &self );
|
||||
|
||||
// Accessors
|
||||
virtual void Archive ( Archiver &arc );
|
||||
private:
|
||||
//------------------------------------
|
||||
// Parameters
|
||||
//------------------------------------
|
||||
|
||||
//-------------------------------------
|
||||
// Components
|
||||
//-------------------------------------
|
||||
private:
|
||||
str _legAnim;
|
||||
str _torsoAnim;
|
||||
str _twitchAnim;
|
||||
|
@ -123,15 +117,13 @@ class HoldPosition : public Behavior
|
|||
//-------------------------------------
|
||||
// Member Variables
|
||||
//-------------------------------------
|
||||
private:
|
||||
HoldPositionStates_t _state;
|
||||
Actor* _self;
|
||||
|
||||
|
||||
};
|
||||
|
||||
inline void HoldPosition::Archive( Archiver &arc )
|
||||
{
|
||||
inline void HoldPosition::Archive(Archiver& arc) {
|
||||
Behavior::Archive(arc);
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue