//===========================================================================//
// File:	ProjectileWeapon.hpp													
//---------------------------------------------------------------------------//
//   Date    Who  Modification                                               //
// --------  ---  ---------------------------------------------------------- //
// 05/18/99	 DPB  Created File
//---------------------------------------------------------------------------//
// Copyright (C) 1998, Fasa Interactive										 //
// All Rights reserved worldwide                                             //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL               //
//===========================================================================//

#pragma once

#include "MW4.hpp"
#include "ProjectileWeapon.hpp"

namespace MechWarrior4
{
	
	//##########################################################################
	//###########################   HighExplosive    ###########################
	//##########################################################################

	typedef ProjectileWeapon__GameModel					HighExplosiveWeapon__GameModel;
	typedef ProjectileWeapon__CreateMessage				HighExplosiveWeapon__CreateMessage;
	typedef ProjectileWeapon__ExecutionStateEngine		HighExplosiveWeapon__ExecutionStateEngine;
	typedef ProjectileWeapon__Message					HighExplosiveWeapon__Message;
	typedef ProjectileWeapon__ClassData					HighExplosiveWeapon__ClassData;

	class HighExplosiveWeapon:
		public ProjectileWeapon
	{
	public:
		static void
			InitializeClass();
		static void
			TerminateClass();

	//##########################################################################
	// Inheritance support
	//
	public:
		typedef HighExplosiveWeapon__ClassData						ClassData;
		typedef HighExplosiveWeapon__GameModel						GameModel;
		typedef HighExplosiveWeapon__Message						Message;
		typedef HighExplosiveWeapon__ExecutionStateEngine			ExecutionStateEngine;
		typedef HighExplosiveWeapon__CreateMessage					CreateMessage;


	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	// Run-time Construction and Destruction Support
	//
	public:
		static HighExplosiveWeapon* 
			Make(
				CreateMessage *message,
				ReplicatorID *base_id
			);

	protected:
		HighExplosiveWeapon(
			ClassData *class_data,
			CreateMessage *message,
			ReplicatorID *base_id,
			ElementRenderer::Element *element
		);

		~HighExplosiveWeapon();

	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	// Shared Data support
	//
	public:
		static ClassData
			*DefaultData;

	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	// Simulation Support
	//
	public:
		void
			CreateProjectile(Stuff::Time till);

	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	// Test Support
	//
	public:
		void
      		TestInstance() const;
	};
}


