basewater.h
来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 29 行
H
29 行
#ifndef __BASE_WATER_H__
#define __BASE_WATER_H__
class CGame;
class CBaseWater
{
public:
CBaseWater(void);
virtual ~CBaseWater(void);
virtual void Draw()=0;
virtual void Update(){};
virtual void UpdateWater(CGame* game)=0;
virtual void AddExplosion(const float3& pos, float strength, float size){};
virtual int GetID() const { return -1; }
static CBaseWater* GetWater();
bool drawReflection;
bool drawRefraction;
bool noWakeProjectiles;
bool drawSolid;
};
extern CBaseWater* water;
#endif // __BASE_WATER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?