tooltipconsole.h

来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef TOOLTIPCONSOLE_H
#define TOOLTIPCONSOLE_H

#include "InputReceiver.h"
#include <string>

class CUnit;
class CFeature;
class float3;

class CTooltipConsole : public CInputReceiver {
	public:
		CTooltipConsole(void);
		~CTooltipConsole(void);
		void Draw(void);
		bool IsAbove(int x,int y);
		bool disabled;

		// helpers
		static std::string MakeUnitString(const CUnit* unit);
		static std::string MakeFeatureString(const CFeature* feature);
		static std::string MakeGroundString(const float3& pos);
		static std::string MakeUnitStatsString(
			float health, float maxHealth,
			float currentFuel, float maxFuel,
			float experience, float cost, float maxRange,
			float metalMake,  float metalUse,
			float energyMake, float energyUse);

	protected:
		float x, y, w, h;
		bool outFont;
};

extern CTooltipConsole* tooltip;

#endif /* TOOLTIPCONSOLE_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?