#pragma once

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

namespace MechWarrior4
{
	
	//##########################################################################
	//###########################   FlareWeapon    #############################
	//##########################################################################

	typedef ProjectileWeapon__GameModel					FlareWeapon__GameModel;
	typedef ProjectileWeapon__CreateMessage				FlareWeapon__CreateMessage;
	typedef ProjectileWeapon__ExecutionStateEngine		FlareWeapon__ExecutionStateEngine;
	typedef ProjectileWeapon__Message					FlareWeapon__Message;
	typedef ProjectileWeapon__ClassData					FlareWeapon__ClassData;

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

	//##########################################################################
	// Inheritance support
	//
	public:
		typedef FlareWeapon__ClassData							ClassData;
		typedef FlareWeapon__GameModel							GameModel;
		typedef FlareWeapon__Message								Message;
		typedef FlareWeapon__ExecutionStateEngine				ExecutionStateEngine;
		typedef FlareWeapon__CreateMessage						CreateMessage;


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

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

		~FlareWeapon();

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

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

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


