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

📄 gameprojent.h

📁 <B>DirectX9.0 3D游戏编程</B>
💻 H
字号:
/*******************************************************************
 *         Advanced 3D Game Programming using DirectX 8.0
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *   Title: GameProjEnt.h
 *    Desc: Represents a projectile in the world
 *
 * copyright (c) 2001 by Peter A Walsh and Adrian Perez
 * See license.txt for modification and distribution information
 ******************************************************************/

#ifndef _GAMEPROJENT_H
#define _GAMEPROJENT_H

#include "GameEnt.h"
#include "..\ResourceMgr.h"

objID GetNextProjEntID();

class cGameProjEnt : public cGameEnt
{
	// constructor is private to force usage of CreateProjEnt
	cGameProjEnt();

	objID m_launcher; // We shouldn't kill the guy that launched us.
public:

	//==========--------------------------   cGameEnt routines

	virtual void Tick( float tickLength );

	virtual bool RespondToCollision( cGameEnt* pOther );

	/**
	 * We extend the base set of message handling abilities
	 */
	virtual uint ProcMsg( const sMsg& msg );

	virtual bool HitsObjects(){ return true; }

	/**
	 * Create a projectile entity.  All creation goes through
	 * one of these static ctors.  The server should
	 * use the server ctor, client client.
	 */
	static cGameProjEnt* CreateOnServer( objID parent, float yaw, float pitch );
	static cGameProjEnt* CreateOnClient( objID id, sEntState& state );

};

#endif //_GAMEPROJENT_H

⌨️ 快捷键说明

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