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

📄 unit.h.svn-base

📁 自己做的小游戏
💻 SVN-BASE
字号:
#pragma once

#include "game_object.h"


void InitUnits();
GameObject* GODBGetGO( unsigned int unique_id );
void UpdateUnits();
void CalcUnitsNewPos();












































//#include <math.h>
//#include <windows.h>
//#include <limits.h>
//#include "../gamedata/Script.h"
//#include "../gamedata/Structs.h"
//#include "game_object.h"
//#include "fsm.h"
//
//#define STAND		0
//#define RUN			1
//#define ATTACK		2
//
////#define ULONG_MAX	0xffffffff
//
//class Unit
//{
//public:
//	Unit(void);
//	~Unit(void);
//
//	Vertex getPos();
//	Vertex getNextPos();
//	float getRotY();
//	int getState(int* type);
//
//	void move(Vertex dest);
//	void stand(Vertex dest);
//	void rotate(float face_z);
//
//	void update(unsigned long curTime);
//
//	void updateState();
//	void updatePosition();
//	void updateTimer();
//	void updateFrame();
//
//
//	Script script;
//	int maxHealth;
//	int health;
//	int aggressivity;
//	int attackDist;
//	float moveSpeed;
//	float height;
//	float oneStepLen;
//
//	bool cmd[3];
//	Vertex newPos;
//	float newRotY;
//
//	int preState, state;
//
//	Vertex pos;
//	float rotY;
//
//	unsigned long curT;
//	unsigned long preT;
//	unsigned long begT;
//	unsigned long endT;
//
//	Animation ani[3];
//	int curF;
//
//	static unsigned int ID;
//};
//

⌨️ 快捷键说明

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