mirror of
https://github.com/UberGames/EF2GameSource.git
synced 2024-11-12 23:44:08 +00:00
reformat
This commit is contained in:
parent
fc2c939d0d
commit
bc0aecbafd
1 changed files with 107 additions and 114 deletions
|
@ -43,14 +43,12 @@ class AnimatedTeleportToPosition;
|
|||
//
|
||||
// Method of Use: State Machine or another behavior
|
||||
//--------------------------------------------------------------
|
||||
class AnimatedTeleportToPosition : public Behavior
|
||||
{
|
||||
class AnimatedTeleportToPosition : public Behavior {
|
||||
public:
|
||||
//------------------------------------
|
||||
// States
|
||||
//------------------------------------
|
||||
public:
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
ANIM_TELEPORT_BEGIN,
|
||||
ANIM_TELEPORT_START_ANIM,
|
||||
ANIM_TELEPORT_START_ANIMATING,
|
||||
|
@ -59,54 +57,49 @@ class AnimatedTeleportToPosition : public Behavior
|
|||
ANIM_TELEPORT_END_ANIMATING,
|
||||
} animTeleportStates_t;
|
||||
|
||||
//-------------------------------------
|
||||
// Public Interface
|
||||
//-------------------------------------
|
||||
CLASS_PROTOTYPE(AnimatedTeleportToPosition);
|
||||
|
||||
void SetArgs(Event* ev);
|
||||
void Begin(Actor& self);
|
||||
BehaviorReturnCode_t Evaluate(Actor& self);
|
||||
void End(Actor& self);
|
||||
virtual void Archive(Archiver& arc);
|
||||
|
||||
private:
|
||||
//------------------------------------
|
||||
// Parameters
|
||||
//------------------------------------
|
||||
private:
|
||||
str _teleportPositionName;
|
||||
int _numberOfTeleportPositions;
|
||||
str _startAnim;
|
||||
str _endAnim;
|
||||
|
||||
|
||||
//-------------------------------------
|
||||
// Public Interface
|
||||
//-------------------------------------
|
||||
public:
|
||||
CLASS_PROTOTYPE( AnimatedTeleportToPosition );
|
||||
|
||||
void SetArgs( Event *ev );
|
||||
void Begin( Actor &self );
|
||||
BehaviorReturnCode_t Evaluate( Actor &self );
|
||||
void End( Actor &self );
|
||||
virtual void Archive( Archiver &arc );
|
||||
|
||||
//-------------------------------------
|
||||
// Member Variables
|
||||
//-------------------------------------
|
||||
private:
|
||||
animTeleportStates_t _state;
|
||||
PathNodePtr _goal;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
inline void AnimatedTeleportToPosition::Archive( Archiver &arc )
|
||||
{
|
||||
Behavior::Archive( arc );
|
||||
inline void AnimatedTeleportToPosition::Archive(Archiver& arc) {
|
||||
Behavior::Archive(arc);
|
||||
|
||||
//-------------------------------------
|
||||
// Archive Parameters
|
||||
//-------------------------------------
|
||||
arc.ArchiveString ( &_teleportPositionName );
|
||||
arc.ArchiveInteger ( &_numberOfTeleportPositions );
|
||||
arc.ArchiveString ( &_startAnim );
|
||||
arc.ArchiveString ( &_endAnim );
|
||||
arc.ArchiveString(&_teleportPositionName);
|
||||
arc.ArchiveInteger(&_numberOfTeleportPositions);
|
||||
arc.ArchiveString(&_startAnim);
|
||||
arc.ArchiveString(&_endAnim);
|
||||
|
||||
//-------------------------------------
|
||||
// Archive Member Variables
|
||||
//-------------------------------------
|
||||
ArchiveEnum ( _state, animTeleportStates_t );
|
||||
arc.ArchiveSafePointer ( &_goal );
|
||||
ArchiveEnum(_state, animTeleportStates_t);
|
||||
arc.ArchiveSafePointer(&_goal);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue