#pragma once #include "PlaneObject.h" // ÀÏ¹Ý ¾Ö´Ï¸ÞÀÌ¼Ç 2D class cBaseAniPlane : public cPlaneObject { public: cBaseAniPlane(); ~cBaseAniPlane(); /// »ý¼ººÎ virtual bool Create( NiTexture* pTexture, int screenX, int screenY, unsigned int screenW, unsigned int screenH, unsigned int texLeft, unsigned int texTop, unsigned int texRight, unsigned int texBottom ); virtual void Process( unsigned long accumTime ); void BeginAnimation(); void EndAnimation(); void SetAnimationInfo( short totalFrame, unsigned long timeOut, bool loop ); protected: short mFrames; /// ÇÁ·¹ÀÓ¼ö short mCurFrame; /// ÇöÀç ÇÁ·¹ÀÓ bool mLoop; /// ¾Ö´Ï¸ÞÀÌ¼Ç ÇѹÙÄû µ¹¸®±â bool mBeginAnim; /// ¾Ö´Ï»ç¿ë¿©ºÎ /// frame texture size unsigned int mTexX; unsigned int mTexY; unsigned int mTexW; unsigned int mTexH; /// ŸÀÌ¸Ó unsigned long mTimeOut; /// ¾Ö´Ï¸ÞÀÌ¼Ç °»½Å ½Ã°£ unsigned long mLastAccumTime; }; // È¿°ú¸¸ ¿¬ÃâÇÏ°í »ç¶óÁö´Â ¾Ö´Ï¸ÞÀÌ¼Ç class cEffetAniPlane : public cBaseAniPlane { public: cEffetAniPlane(); ~cEffetAniPlane(); /// »ý¼ººÎ virtual bool Create( NiTexture* pTexture, int screenX, int screenY, unsigned int screenW, unsigned int screenH, unsigned int texLeft, unsigned int texTop, unsigned int texRight, unsigned int texBottom ); virtual void Process( unsigned long accumTime ); virtual void Draw(); protected: unsigned int mColumCount; };