/* ========================================================================== * ÆÄ ÀÏ : Npc.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : ¹Ú°æÈñ * ÀÛ ¼º ÀÏ : 2007-06-27 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "Npc_Common.h" #include "BaseObject.h" class cPlayer; class cNpc : public cBaseObject { private: /// NPC ±âº»Á¤º¸ const sNPCList* mpNpcList; /// NPC ¸®Á¨Á¤º¸ //sNPCRegen mNpcRegen; unsigned long mNpcClassIdx; float mDirection; public: cNpc(void); virtual ~cNpc(void); void* operator new ( size_t n ); void operator delete ( void* ptr, size_t n ); /// NPC ±âº»Á¤º¸ ¼ÂÆÃ bool Init( int uniqueIdx, unsigned long classIdx, unsigned short mapNumber, float x, float y, float dir ); unsigned int GetRaceGender() { return mNpcClassIdx; } /// npc ¹æÇâ Á¤º¸ float GetDirection ( ) { return mDirection; } /// NPC Á¾·ù ¹øÈ£ unsigned long GetHP ( ) { return 0; } unsigned long GetMP ( ) { return 0; } unsigned long GetMaxHP ( ) { return 0; } unsigned long GetMaxMP ( ) { return 0; } void GetNpcData ( cPlayer*, sNpcData* ); public: bool SendSightIn ( char category, char protocol, cPlayer* player ); bool SendSightOut ( char category, char protocol, unsigned long connectionIdx ); };