?? sprite.h
字號:
#ifndef SPRITE_H
#define SPRITE_H
class Sprite
{
protected:
GameWorld *pGameWorld;
int ExplosionFrameCount, ExplosionFrameIndex;
double x, y;
void AdjustPosition();
public:
int sx, sy, w, h; // 在素材位圖中的位置
int cx, cy, cw, ch; // 碰撞檢測用矩形
int Life, Atackness;
double dx, dy;
bool Used;
bool OutOfClient();
bool OutOfSight();
int GetX(){ return (int)x; }
int GetY(){ return (int)y; }
void SetX(int x_value){ x=x_value; }
void SetY(int y_value){ y=y_value; }
Sprite(GameWorld *pgw, int x_value, int y_value);
virtual void Update();
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -