#pragma once

#include "MW4.hpp"
#include "MissileWeapon.hpp"

namespace MechWarrior4
{
	
	//##########################################################################
	//###########################   BombWeaponSubsystem    #####################
	//##########################################################################

	typedef MissileWeapon__GameModel					BombWeaponSubsystem__GameModel;
	typedef MissileWeapon__CreateMessage				BombWeaponSubsystem__CreateMessage;
	typedef MissileWeapon__ExecutionStateEngine			BombWeaponSubsystem__ExecutionStateEngine;
	typedef MissileWeapon__Message						BombWeaponSubsystem__Message;
	typedef MissileWeapon__ClassData					BombWeaponSubsystem__ClassData;

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

	//##########################################################################
	// Inheritance support
	//
	public:
		typedef BombWeaponSubsystem__ClassData						ClassData;
		typedef BombWeaponSubsystem__GameModel						GameModel;
		typedef BombWeaponSubsystem__Message							Message;
		typedef BombWeaponSubsystem__ExecutionStateEngine			ExecutionStateEngine;
		typedef BombWeaponSubsystem__CreateMessage					CreateMessage;


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

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

		~BombWeaponSubsystem();

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

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

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


