⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gameobject.h

📁 这是一款2d游戏引擎
💻 H
字号:

#ifndef header_gameobject
#define header_gameobject

#if _MSC_VER > 1000
#pragma once
#endif

class GameObject
{
//!Construction:
public:
	//: Destructor.
	virtual ~GameObject() { return; }

//!Attributes:
public:
	//: Returns x position of the object.
	virtual float get_x() = 0;

	//: Returns y position of the object.
	virtual float get_y() = 0;

//!Operations:
public:
	//: Draw object on graphic context, where map is at (view_x, view_y).
	virtual void show(int view_x, int view_y, CL_GraphicContext *gc = 0) = 0;

	//: Moves the object around.
	virtual bool turn(float time_elapsed) = 0;

//!Implementation:
private:
};

#endif

⌨️ 快捷键说明

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