mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 11:00:38 +02:00
34 lines
711 B
C++
34 lines
711 B
C++
#ifndef __GAME_TRACKMOVER_H__
|
|
#define __GAME_TRACKMOVER_H__
|
|
|
|
|
|
class hhTrackMover : public idMover {
|
|
CLASS_PROTOTYPE( hhTrackMover );
|
|
public:
|
|
hhTrackMover();
|
|
void Spawn( void );
|
|
void Save( idSaveGame *savefile ) const;
|
|
void Restore( idRestoreGame *savefile );
|
|
idEntity * GetNextDestination( void );
|
|
void DoneMoving( void );
|
|
|
|
protected:
|
|
enum States {
|
|
StateGlobal = 0,
|
|
StateIdle,
|
|
StateDead
|
|
} state;
|
|
|
|
int timeBetweenMoves;
|
|
idEntity * currentNode; // Current node of track
|
|
|
|
void Event_Activate( idEntity *activator );
|
|
void Event_Deactivate();
|
|
void Event_PostSpawn( void );
|
|
void Event_StartNextMove( void );
|
|
void Event_Kill();
|
|
};
|
|
|
|
|
|
#endif /* __GAME_TRACKMOVER_H__ */
|