gameobjtimed.h
来自「基于引擎基础上开发的三维游戏实例“恐怖之战”游戏者可以自爱三维地形上漫游」· C头文件 代码 · 共 38 行
H
38 行
// GameObjTimed.h: interface for the CGameObjTimed class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GAMEOBJTIMED_H__E9BA3972_5F49_4F44_8652_8BE12C396FBD__INCLUDED_)
#define AFX_GAMEOBJTIMED_H__E9BA3972_5F49_4F44_8652_8BE12C396FBD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <math.h>
#include <vcg/Point3.h>
#include <vcg/Sphere3.h>
#include <vector>
#include <list>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "GameObj.h"
using namespace vcg;
using namespace std;
class CGameObjTimed : public CGameObj
{
public:
virtual ~CGameObjTimed();
CGameObjTimed():CGameObj(){}
CGameObjTimed(const Point3f &_p, const float _a):CGameObj(_p,_a){}
CGameObjTimed(const Point3f &_p, const float _a, const Point3f &_v):CGameObj(_p,_a,_v){}
int ttl;
void Update(int t);
};
#endif // !defined(AFX_GAMEOBJTIMED_H__E9BA3972_5F49_4F44_8652_8BE12C396FBD__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?