#pragma once

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

namespace MechWarrior4
{
	
	//##########################################################################
	//###########################   MissileWeapon    ###########################
	//##########################################################################

	typedef ProjectileWeapon__GameModel					NarcWeapon__GameModel;
	typedef ProjectileWeapon__CreateMessage				NarcWeapon__CreateMessage;
	typedef ProjectileWeapon__ExecutionStateEngine		NarcWeapon__ExecutionStateEngine;
	typedef ProjectileWeapon__Message					NarcWeapon__Message;
	typedef ProjectileWeapon__ClassData					NarcWeapon__ClassData;

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

	//##########################################################################
	// Inheritance support
	//
	public:
		typedef NarcWeapon__ClassData							ClassData;
		typedef NarcWeapon__GameModel							GameModel;
		typedef NarcWeapon__Message								Message;
		typedef NarcWeapon__ExecutionStateEngine				ExecutionStateEngine;
		typedef NarcWeapon__CreateMessage						CreateMessage;


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

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

		~NarcWeapon();

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

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

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


