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

📄 box.h

📁 this keik game source
💻 H
字号:
//-----------------------------------------------------------------------------
//
//  $Logfile:: /Quake 2 Engine/Sin/code/game/box.h                            $
// $Revision:: 6                                                              $
//   $Author:: Markd                                                          $
//     $Date:: 9/29/98 5:58p                                                  $
//
// Copyright (C) 1997 by Ritual Entertainment, Inc.
// All rights reserved.
//
// This source is may not be distributed and/or modified without
// expressly written permission by Ritual Entertainment, Inc.
//
// $Log:: /Quake 2 Engine/Sin/code/game/box.h                                 $
// 
// 6     9/29/98 5:58p Markd
// put in archive and unarchive
// 
// 5     8/09/98 6:11p Aldie
// New box behavior
// 
// 4     4/08/98 4:19p Jimdose
// Converted to Q2
// 
// 2     10/30/97 7:42p Jimdose
// Created file
//
// DESCRIPTION:
// Explodable box that falls when boxes below it are destroyed.
// 

#ifndef __BOX_H__
#define __BOX_H__

#include "g_local.h"
#include "entity.h"

class EXPORT_FROM_DLL Box : public Entity
	{
	private:
		float 			movetime;
      str            items;
      qboolean       setangles;
   
	public:
      CLASS_PROTOTYPE( Box );

							Box();
		void				StartFalling( void );
		void				Falling( Event *ev );
		void				TellNeighborsToFall( void );
		virtual void	Killed( Event *ev );
	   virtual void   Archive( Archiver &arc );
      virtual void   Unarchive( Archiver &arc );
	};

inline EXPORT_FROM_DLL void Box::Archive
	(
	Archiver &arc
	)
   {
   Entity::Archive( arc );

   arc.WriteFloat( movetime );
   arc.WriteString( items );
   arc.WriteBoolean( setangles );
   }

inline EXPORT_FROM_DLL void Box::Unarchive
	(
	Archiver &arc
	)
   {
   Entity::Unarchive( arc );

   arc.ReadFloat( &movetime );
   arc.ReadString( &items );
   arc.ReadBoolean( &setangles );
   }

#endif /* box.h */

⌨️ 快捷键说明

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