gameobjtimed.cpp
来自「基于引擎基础上开发的三维游戏实例“恐怖之战”游戏者可以自爱三维地形上漫游」· C++ 代码 · 共 29 行
CPP
29 行
// GameObjTimed.cpp: implementation of the CGameObjTimed class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MyGame.h"
#include "GameObjTimed.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGameObjTimed::~CGameObjTimed()
{
}
void CGameObjTimed::Update(int t)
{
ttl-=t;
if(ttl<0) active=false;
CGameObj::Update(t);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?