This commit is contained in:
parent
16c139d989
commit
26aa7ecc90
9 changed files with 191 additions and 56 deletions
|
@ -34,15 +34,36 @@
|
|||
class CNpcHazard : public CHazardThing
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
virtual void init();
|
||||
void shutdown();
|
||||
void think(int _frames);
|
||||
void render();
|
||||
void setLayerCollision( class CLayerCollision *_layer ) {m_layerCollision=_layer;}
|
||||
|
||||
protected:
|
||||
enum
|
||||
{
|
||||
EXTEND_UP = true,
|
||||
EXTEND_DOWN = false,
|
||||
EXTEND_RIGHT = true,
|
||||
EXTEND_LEFT = false,
|
||||
EXTEND_CLOCKWISE = true,
|
||||
EXTEND_ANTICLOCKWISE = false,
|
||||
};
|
||||
|
||||
virtual void processMovement( int _frames );
|
||||
virtual void processTimer( int _frames );
|
||||
CNpcPath m_npcPath;
|
||||
CActorGfx *m_actorGfx;
|
||||
SpriteBank *m_spriteBank;
|
||||
DVECTOR m_base;
|
||||
s32 m_timer;
|
||||
bool m_timerActive;
|
||||
bool m_isActive;
|
||||
class CLayerCollision *m_layerCollision;
|
||||
s32 m_extension;
|
||||
bool m_extendDir;
|
||||
s32 m_heading;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue