//===========================================================================//
// File:	MRMWeaponSubsystem.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 "MissileWeapon.hpp"

namespace MechWarrior4
{
	
	//##########################################################################
	//###########################   SRMWeaponSubsystem    ######################
	//##########################################################################

	typedef MissileWeapon__GameModel					MRMWeaponSubsystem__GameModel;
	typedef MissileWeapon__CreateMessage				MRMWeaponSubsystem__CreateMessage;
	typedef MissileWeapon__ExecutionStateEngine			MRMWeaponSubsystem__ExecutionStateEngine;
	typedef MissileWeapon__Message						MRMWeaponSubsystem__Message;
	typedef MissileWeapon__ClassData					MRMWeaponSubsystem__ClassData;

	class MRMWeaponSubsystem:
		public MissileWeapon
	{
	public:
		static void
			InitializeClass();
		static void
			TerminateClass();

	//##########################################################################
	// Inheritance support
	//
	public:
		typedef MRMWeaponSubsystem__ClassData						ClassData;
		typedef MRMWeaponSubsystem__GameModel						GameModel;
		typedef MRMWeaponSubsystem__Message							Message;
		typedef MRMWeaponSubsystem__ExecutionStateEngine			ExecutionStateEngine;
		typedef MRMWeaponSubsystem__CreateMessage					CreateMessage;


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

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

		~MRMWeaponSubsystem();

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

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

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


