SpriteInfo.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:4k
- #ifndef _SPRITEDEF_H
- #define _SPRITEDEF_H
- // 某腐磐, 阁胶磐, NPC殿狼 胶橇扼捞飘甫 Define茄促.
- #define _MAX_HUMAN_RACE_FRAME 2640
- // 某腐磐 辆幅 Define.
- #define _MAX_HUMAN_RACE 3
- #define _HUMAN_RACE_TYPE1 0 // 舅个 巢磊.
- //#define _HUMAN_RACE_TYPE2 1 // 舅个 咯磊.
- #define _HUMAN_RACE_TYPE2 1 // 乞汗 巢磊.
- //#define _HUMAN_RACE_TYPE4 3 // 乞汗 咯磊.
- #define _HUMAN_RACE_TYPE3 2 // 版癌 巢磊.
- //#define _HUMAN_RACE_TYPE6 5 // 版癌 咯磊.
- //#define _HUMAN_RACE_TYPE7 6 // 傈巩汗 傈荤 巢磊.
- //#define _HUMAN_RACE_TYPE8 7 // 傈巩汗 傈荤 咯磊.
- //#define _HUMAN_RACE_TYPE9 8 // 傈巩汗 贱荤 巢磊.
- //#define _HUMAN_RACE_TYPE10 9 // 傈巩汗 贱荤 咯磊.
- //#define _HUMAN_RACE_TYPE11 10 // 傈巩汗 档荤 巢磊.
- //#define _HUMAN_RACE_TYPE12 11 // 傈巩汗 档荤 咯磊.
- // 某腐磐 悼累 Define.
- #define _MAX_HUMAN_MTN 33
- #define _MT_HUMAN_STAND 0
- #define _MT_HUMAN_ARROWATTACK 1
- #define _MT_HUMAN_SPELL1 2
- #define _MT_HUMAN_SPELL2 3
- #define _MT_HUMAN_HOLD 4
- #define _MT_HUMAN_PUSHBACK 5
- #define _MT_HUMAN_PUSHBACKFLY 6
- #define _MT_HUMAN_ATTACKMODE 7
- #define _MT_HUMAN_CUT 8
- #define _MT_HUMAN_ONEVSWING 9
- #define _MT_HUMAN_TWOVSWING 10
- #define _MT_HUMAN_ONEHSWING 11
- #define _MT_HUMAN_TWOHSWING 12
- #define _MT_HUMAN_SPEARVSWING 13
- #define _MT_HUMAN_SPEARHSWING 14
- #define _MT_HUMAN_HITTED 15
- #define _MT_HUMAN_WHEELWIND 16
- #define _MT_HUMAN_RANDSWING 17
- #define _MT_HUMAN_BACKDROPKICK 18
- #define _MT_HUMAN_PUSHBACKDEAD 19
- #define _MT_HUMAN_SPECIALDEAD 20
- #define _MT_HUMAN_WALK 21
- #define _MT_HUMAN_RUN 22
- #define _MT_HUMAN_MOODEPO 23
- #define _MT_HUMAN_ROLL 24
- #define _MT_HUMAN_FISHSTAND 25
- #define _MT_HUMAN_FISHHAND 26
- #define _MT_HUMAN_FISHTHROW 27
- #define _MT_HUMAN_FISHPULL 28
- #define _MT_HUMAN_HORSESTAND 29
- #define _MT_HUMAN_HORSEWALK 30
- #define _MT_HUMAN_HORSERUN 31
- #define _MT_HUMAN_HORSEHITT 32
- /*
- #define _MT_HUMAN_WEAPON1 33
- #define _MT_HUMAN_WEAPON2 34
- #define _MT_HUMAN_WEAPON3 35
- */
- // 阁胶磐 辆幅 Define
- #define _MAX_MON_RACE 5
- #define _RACE_LIZARD 0
- #define _RACE_NIGHTGHOST 1
- #define _RACE_THORN 2
- #define _RACE_SANDMON 3
- #define _RACE_GOLEM 4
- // 阁胶磐 悼累 Define
- #define _MAX_MON_MTN 9
- #define _MT_MON_STAND 0
- #define _MT_MON_WALK 1
- #define _MT_MON_ATTACK 2
- #define _MT_MON_STRUCK 3
- #define _MT_MON_DIE 4
- #define _MT_MON_DEATH 5
- #define _MT_MON_APPEAR 6
- #define _MT_MON_DISAPPEAR 7
- #define _MT_MON_CRITICAL 8
- typedef struct tagMTNFRMINFO
- {
- SHORT shStartFrm;
- BYTE bFrmCnt;
- BYTE bSkip;
- SHORT shDelay;
- BOOL bReverse;
- }MTNFRMINFO, *LPMTNFRMINFO;
- typedef struct tagHUMANRACEINFO
- {
- SHORT shImgIdx;
- SHORT shRaceStartFrm;
- SHORT shRaceEndFrm;
- MTNFRMINFO stMtn[_MAX_HUMAN_MTN];
- }HUMANRACEINFO, *LPHUMANRACEINFO;
- typedef struct tagMONRACEINFO
- {
- SHORT shImgIdx;
- SHORT shRaceStartFrm;
- SHORT shRaceEndFrm;
- MTNFRMINFO stMtn[_MAX_MON_MTN];
- }MONRACEINFO, *LPMONRACEINFO;
- class CSpriteInfo
- {
- public:
- HUMANRACEINFO m_stHuman[_MAX_HUMAN_RACE];
- MONRACEINFO m_stMon[_MAX_MON_RACE];
- public:
- CSpriteInfo();
- ~CSpriteInfo();
- Init();
- VOID SetSpriteInfo();
- VOID SetHumanSpriteInfo();
- VOID SetMonSpriteInfo();
- VOID SetHumanRaceInfo(LPHUMANRACEINFO pstHumanRaceInfo, SHORT shImgIdx, SHORT shRaceStartFrm, SHORT shRaceEndFrm);
- VOID SetMonRaceInfo(LPMONRACEINFO pstMonRaceInfo, SHORT shImgIdx, SHORT shRaceStartFrm, SHORT shRaceEndFrm);
- VOID SetMotionInfo(LPMTNFRMINFO pstMtnFrmInfo, SHORT shStartFrm, BYTE bFrmCnt, BYTE bSkip, SHORT shDelay, BOOL bReverse);
- };
- #endif //_SPRITEDEF_H
- // 橇饭烙狼 备炼......
- /*
- LPRACE
- typedef struct tagRACETYPEINFO
- {
- SHORT shStartFrm;
- SHORT shEndFrm;
- SHORT shMaxMtn;
- SHORT shMaxFrame;
- SHORT shImgIdx;
- LPMTNFRMINFO pstMtn;
- }HUMANRACEINFO, *LPHUMANRACEINFO;
- typedef struct tagMTNINFO
- {
- BYTE bMtnFrmOffset; // 泅犁 悼累俊 措茄 弥措 橇饭烙.
- WORD wDir; // 规氢捞 乐绰厚飘俊 1捞 技泼等促.
- BYTE bStartFrm; // 矫累 橇饭烙.
- BYTE bFrmCnt; // 橇饭烙狼 肮荐.
- SHORT shDelay; // 泅犁 悼累狼 Delay.
- BOOL bReverse; // 悼累阑 芭操肺 倒副巴牢瘤狼 咯何.
- }MTNFRMINFO, *LPMTNFRMINFO;
- */