/* ==================================================================== * ÆÄ ÀÏ : ObjectManager.h * ¸ñ Àû : °ÔÀÓ °´Ã¼¸¦ °ü¸®ÇÑ´Ù. * ÀÛ ¼º ÀÚ : Á¤¼º´ë * ÀÛ ¼º ÀÏ : 2006.08.29 * * Ãß°¡³»¿ë : * Ãß°¡³¯Â¥ ÀÛ¾÷ÀÚ Ãß°¡³»¿ë * 2006.08.29 Á¤¼º´ë »ý¼º * * ÁÖÀÇ»çÇ× : * =================================================================== */ #pragma once class cHero; /// ¿ÀºêÁ§Æ® °ü¸®ÀÚ class cObjectManager { static cObjectManager* mSingleton; public: cObjectManager(); ~cObjectManager(); /// ÃʱâÈ­ (½ÃÀ۽à Çѹø) bool Init(); /// Á¾·áÈ­ (Á¾·á½Ã Çѹø) void Exit(); /// ÃʱâºÎ (¸ÊÀ̵¿µî °»½Å½Ã) void Open(); /// Á¾·áºÎ (¸ÊÀ̵¿µî °»½Å½Ã) void Close(); /// ó¸® void Process( float time ); /// ¸¶¿ì½º ÇÈÅ· ÁöÁ¡À¸·Î ÁÖÀΰøÀ» À̵¿ //void MoveHeroByMouse( int mouseX, int mouseY ); void AddPlayer( unsigned long id, int kind, int x, int y ); //void AddHero(); //void AddHeroInfo( unsigned long id, int kind ); //void MovePlayer( unsigned long id, int x, int y ); //void RemovePlayer( unsigned long id ); //inline cHero* GetHero() const; public: /// ´ÜÀÏü¸¦ ¸®ÅÏ static cObjectManager* Get(); protected: // void CreateModel( int kind, cPlayer* pPlayer, NiPoint3 pos ); private: /// ÁÖÀΰø //cHero* mHero; }; //inline cHero* cObjectManager::GetHero() const //{ // return mHero; //} inline cObjectManager* cObjectManager::Get() { return mSingleton; }