/* ========================================================================== * ÆÄ ÀÏ : TipManager.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : ±è°¡¶÷ * ÀÛ ¼º ÀÏ : 2008-12-16 * ÁÖÀÇ»çÇ× : *===========================================================================*/ const int MAX_TIPCOUNT = 100; const unsigned long TIP_UPDATETIME = 1000 * 60 * 5; // 5ºÐ const unsigned int TIPIMG_W = 630; const unsigned int TIPIMG_H = 126; struct sLoadTipData { /// ÅØ½ºÃÄ ¸í cString mTexName; /// ÅØ½ºÃÄ À§Ä¡ unsigned int mTexX; unsigned int mTexY; sLoadTipData() { mTexX = 0; mTexY = 0; } }; class cTipManager { public: cTipManager(); ~cTipManager(); bool Init(); void Process( unsigned long accumTime ); /// sLoadTipData* GetLoadTipData(); public: static cTipManager* mpSingleton; static cTipManager* GetSingleton(); private: bool LoadGameTip( const cString& pathname ); bool LoadLoadTip( const cString& pathname ); private: /// äÆÃ ÆÁ °ü¸® typedef tArray cIndexArr; cIndexArr mTipArr[MAX_TIPCOUNT]; /// ·Îµù ÆÁ °ü¸® typedef tPointerArray cLoadTipArr; cLoadTipArr mLoadTipArr; /// unsigned long mLastAccumTime; unsigned long mGradeTipLastTime; }; inline cTipManager* cTipManager::GetSingleton() { return mpSingleton; } #define TIPMAN cTipManager::GetSingleton()