00001 #ifndef _NPC_H_ 00002 #define _NPC_H_ 00003 00004 #include "SDL.h" 00005 00006 #include <cstdlib> 00007 #include <string> 00008 using namespace std; 00009 00011 00017 class NPC { 00018 public: 00020 NPC(); 00021 // AD&D-style stat variables 00023 int hp; 00025 int hp_max; 00027 int mp; 00029 int mp_max; 00031 int mod; 00032 00033 // NPC management variables 00035 bool bIsHostile; 00037 string myName; 00039 string whatToSay0; 00041 int x, y; 00042 00043 // RPG-based crap 00045 bool bIsMrQuesty; 00047 bool bIsShopKeeper; 00048 00049 // graphics crap 00050 //bool bDrawMe; 00051 //void updateGfx(); 00053 SDL_Rect rect; 00055 int sprite; 00057 int heading; 00058 00059 // now for their usability functions 00061 void moveRelative(int dx, int dy); 00062 }; 00063 00064 #endif