Complete disaster-recovery snapshot: engine/game source, game data assets, VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive. Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false, no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
83 lines
2.1 KiB
C++
83 lines
2.1 KiB
C++
#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;
|
|
};
|
|
}
|
|
|
|
|