SBSPSS/source/friend/fgary.h

57 lines
1.4 KiB
C
Raw Normal View History

2001-04-27 16:46:29 +02:00
/*=========================================================================
fgary.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __FRIEND_FGARY_H__
#define __FRIEND_FGARY_H__
#ifndef __FRIEND_FRIEND_H__
#include "friend\friend.h"
#endif
class CNpcGaryFriend : public CNpcFriend
{
public:
2001-07-04 00:17:20 +02:00
void postInit();
void shutdown();
void think( int _frames );
void setupWaypoints( sThingActor *ThisActor );
2001-06-29 16:19:28 +02:00
bool alwaysThink() {return(true);}
2001-05-30 22:24:02 +02:00
DVECTOR const &getTriggerPos() {return( m_triggerPos );}
2001-06-07 23:44:33 +02:00
void start();
2001-08-03 16:42:00 +02:00
void stop( int xPos );
2001-06-04 14:54:44 +02:00
void startLeft();
2001-06-04 15:20:30 +02:00
void startRight();
2001-07-04 00:17:20 +02:00
void render();
2001-07-09 21:38:58 +02:00
void setObstructed() {m_obstructed = true;}
2001-08-02 14:45:12 +02:00
static void setReachedDoor() {m_hasReachedDoor = true;}
2001-08-22 15:19:39 +02:00
static void clearReachedDoor() {m_hasReachedDoor = false;}
2001-08-02 14:45:12 +02:00
static bool hasReachedDoor() {return( m_hasReachedDoor );}
2001-05-30 22:24:02 +02:00
protected:
DVECTOR m_triggerPos;
u8 m_started;
2001-07-28 18:07:56 +02:00
u8 m_startMoving;
2001-06-06 18:19:00 +02:00
u8 m_fallDeath;
s16 m_speed;
s16 m_drawRotation;
2001-06-29 16:57:20 +02:00
int m_soundId;
2001-07-09 21:38:58 +02:00
u8 m_obstructed;
2001-07-28 18:07:56 +02:00
u8 m_garySB;
2001-07-25 17:25:54 +02:00
u8 m_garyMeow;
2001-07-28 18:07:56 +02:00
static u8 m_garySpeech;
2001-08-02 14:45:12 +02:00
static u8 m_hasReachedDoor;
2001-08-03 16:42:00 +02:00
u8 m_isStopping;
int m_xStopPos;
2001-04-27 16:46:29 +02:00
};
#endif