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

📄 moveobject.h

📁 一个类似坦克大战的小小游戏
💻 H
字号:

/**************************************************************************************
	Project  Name			: Pirates of the Caribbean
	Module Name				: Move Object
	File Name				: MoveObject.h: interface for the CMoveObject class.
	Create					: 2007-7-16, by Vigame
	Update					: 2007-7-30, add move process fuctions, by Vigame
	Copyright				: 
	Reference				: 
	Abstrct					: The object can move
 **************************************************************************************/

#ifndef __H_MoveObject__
#define __H_MoveObject__

#pragma once
#include "gameobject.h"
#include "GameResource.h"

class CMoveObject : public CGameObject
{
public:
	CMoveObject(void);
	virtual ~CMoveObject(void);

	// Process move
	virtual void MoveUp(CGameResource *&pResource);
	virtual void MoveDown(CGameResource *&pResource);
	virtual void MoveLeft(CGameResource *&pResource);
	virtual void MoveRight(CGameResource *&pResource);

public:
	// Direction Descriptions
    //         0
    //         | 
    //     3 -- -- 1
	//	       |
	//		   2
	// 0: UP, 1: DOWN, 2: LEFT, 3: RIGHT
	int m_nDirection;	
	int m_nSpeed;
	int m_nSpeedTemp;	
};

#endif

⌨️ 快捷键说明

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