📄 scenesprite.h
字号:
#ifndef SCENESPRITE_H
#define SCENESPRITE_H
class invasion;
// Meant for sprites that are a part of the scenery and
// that do not interact with Captain Chloride or any
// other game object.
class scene_sprite : public sprite
{
public:
bool scene_sprite::Render(
invasion *theGame);
void WorldX( float x);
float WorldX();
void WorldY( float y);
float WorldY();
private:
vectorf worldPos;
};
inline void
scene_sprite::WorldX( float x)
{
worldPos.X( x);
}
inline float
scene_sprite::WorldX()
{
return (worldPos.X());
}
inline void
scene_sprite::WorldY( float y)
{
worldPos.Y( y);
}
inline float
scene_sprite::WorldY()
{
return (worldPos.Y());
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -