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

📄 object.h

📁 hl2 source code. Do not use it illegal.
💻 H
字号:
#ifndef HK_PHYSICS_OBJECT_H
#define HK_PHYSICS_OBJECT_H

// object is something which will be managed by the scene management
class hk_Object : public hkBaseObject
{
private:
	protected:
		hk_Environment *m_environment;

	protected:
		inline virtual ~hk_Object(){
		}

		inline hk_Object(hk_Environment *env): m_environment(env)	{	}

	public:
		inline hk_Environment *get_environment(){
			return m_environment;
		}
};


class hk_Sim_Object : public hk_Object
{
	public:

		virtual hk_sim_freq get_minimum_simulation_frequency(){ return 0;}
		
		inline void set_client_data( const hk_client );
		inline hk_client get_client_data() const;
		hk_id get_id() const { return m_id; };

		virtual void destroy_with_activation(){ delete this; };
		virtual void destroy_without_activation(){ delete this;};

		hk_Sim_Object(hk_Environment *env)
			: hk_Object(env)
		{
		}

		virtual ~hk_Sim_Object()
		{
		}

	private:

		friend class hk_Object_Factory;
		hk_id     m_id;
		hk_client m_client;
};

#endif //HK_PHYSICS_OBJECT_H

⌨️ 快捷键说明

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