Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShipDesign Class Reference

#include <ShipDesign.h>

List of all members.

Public Types

enum  CONSTANTS { MAX_DEBRIS = 10, MAX_EXPLOSIONS = 10 }

Public Member Functions

 ShipDesign ()
 ShipDesign (const char *name, const char *path, const char *filename, bool secret=false)
 ~ShipDesign ()
int operator== (const ShipDesign &s) const
void ParseShip (TermDef *def)
void ParsePower (TermStruct *val)
void ParseDrive (TermStruct *val)
void ParseQuantumDrive (TermStruct *val)
void ParseFarcaster (TermStruct *val)
void ParseThruster (TermStruct *val)
void ParseNavlight (TermStruct *val)
void ParseFlightDeck (TermStruct *val)
void ParseLandingGear (TermStruct *val)
void ParseWeapon (TermStruct *val)
void ParseHardPoint (TermStruct *val)
void ParseSensor (TermStruct *val)
void ParseNavsys (TermStruct *val)
void ParseComputer (TermStruct *val)
void ParseShield (TermStruct *val)
void ParseDeathSpiral (TermStruct *val)
void ParseExplosion (TermStruct *val, int index)
void ParseDebris (TermStruct *val, int index)
void ParseLoadout (TermStruct *val)
void ParseMap (TermStruct *val)
void ParseSquadron (TermStruct *val)
SkinParseSkin (TermStruct *val)
void ParseSkinMtl (TermStruct *val, Skin *skin)
const char * DisplayName () const
const SkinFindSkin (const char *skin_name) const

Static Public Member Functions

static const char * TYPENAME ()
static void Initialize ()
static void Close ()
static bool CheckName (const char *name)
static ShipDesignGet (const char *design_name, const char *design_path=0)
static ShipDesignFindModDesign (const char *design_name, const char *design_path=0)
static void ClearModCatalog ()
static int GetDesignList (int type, List< Text > &designs)
static int ClassForName (const char *name)
static const char * ClassName (int type)
static int LoadCatalog (const char *path, const char *file, bool mod=false)
static void LoadSkins (const char *path, const char *archive=0)
static void PreloadCatalog (int index=-1)
static int StandardCatalogSize ()

Public Attributes

char filename [64]
char path_name [64]
char name [64]
char display_name [64]
char abrv [16]
int type
float scale
int auto_roll
bool valid
bool secret
Text description
int lod_levels
List< Modelmodels [4]
List< Pointoffsets [4]
float feature_size [4]
List< Pointspin_rates
List< Skinskins
Modelcockpit_model
float cockpit_scale
float vlimit
float agility
float air_factor
float roll_rate
float pitch_rate
float yaw_rate
float trans_x
float trans_y
float trans_z
float turn_bank
Vec3 chase_vec
Vec3 bridge_vec
Vec3 beauty_cam
float prep_time
float drag
float roll_drag
float pitch_drag
float yaw_drag
float arcade_drag
float mass
float integrity
float radius
float CL
float CD
float stall
int primary
int secondary
int main_drive
float pcs
float acs
float detet
float e_factor [3]
float avoid_time
float avoid_fighter
float avoid_strike
float avoid_target
float commit_range
float death_spiral_time
float explosion_scale
ShipExplosion explosion [MAX_EXPLOSIONS]
ShipDebris debris [MAX_DEBRIS]
List< PowerSourcereactors
List< Weaponweapons
List< HardPointhard_points
List< Drivedrives
List< Computercomputers
List< FlightDeckflight_decks
List< NavLightnavlights
QuantumDrivequantum_drive
Farcasterfarcaster
Thrusterthruster
Sensorsensor
NavSystemnavsys
Shieldshield
Modelshield_model
Weapondecoy
Weaponprobe
LandingGeargear
float splash_radius
float scuttle
float repair_speed
int repair_teams
bool repair_auto
bool repair_screen
bool wep_screen
Text bolt_hit_sound
Text beam_hit_sound
Soundbolt_hit_sound_resource
Soundbeam_hit_sound_resource
List< ShipLoadloadouts
List< Bitmapmap_sprites
List< ShipSquadronsquadrons
Bitmap beauty
Bitmap hud_icon

Detailed Description

Definition at line 109 of file ShipDesign.h.


Member Enumeration Documentation

Enumerator:
MAX_DEBRIS 
MAX_EXPLOSIONS 

Definition at line 114 of file ShipDesign.h.


Constructor & Destructor Documentation

ShipDesign::ShipDesign ( )

Definition at line 147 of file ShipDesign.cpp.

ShipDesign::ShipDesign ( const char *  name,
const char *  path,
const char *  filename,
bool  secret = false 
)

Definition at line 164 of file ShipDesign.cpp.

ShipDesign::~ShipDesign ( )

Definition at line 424 of file ShipDesign.cpp.


Member Function Documentation

bool ShipDesign::CheckName ( const char *  name)
static

Definition at line 879 of file ShipDesign.cpp.

int ShipDesign::ClassForName ( const char *  name)
static

Definition at line 1049 of file ShipDesign.cpp.

const char * ShipDesign::ClassName ( int  type)
static

Definition at line 1064 of file ShipDesign.cpp.

void ShipDesign::ClearModCatalog ( )
static

Definition at line 990 of file ShipDesign.cpp.

void ShipDesign::Close ( )
static

Definition at line 644 of file ShipDesign.cpp.

const char * ShipDesign::DisplayName ( ) const

Definition at line 463 of file ShipDesign.cpp.

ShipDesign * ShipDesign::FindModDesign ( const char *  design_name,
const char *  design_path = 0 
)
static

Definition at line 956 of file ShipDesign.cpp.

const Skin * ShipDesign::FindSkin ( const char *  skin_name) const

Definition at line 3688 of file ShipDesign.cpp.

ShipDesign * ShipDesign::Get ( const char *  design_name,
const char *  design_path = 0 
)
static

Definition at line 905 of file ShipDesign.cpp.

int ShipDesign::GetDesignList ( int  type,
List< Text > &  designs 
)
static

Definition at line 1012 of file ShipDesign.cpp.

void ShipDesign::Initialize ( )
static

Definition at line 594 of file ShipDesign.cpp.

int ShipDesign::LoadCatalog ( const char *  path,
const char *  file,
bool  mod = false 
)
static

Definition at line 653 of file ShipDesign.cpp.

void ShipDesign::LoadSkins ( const char *  path,
const char *  archive = 0 
)
static

Definition at line 753 of file ShipDesign.cpp.

int ShipDesign::operator== ( const ShipDesign s) const
inline

Definition at line 140 of file ShipDesign.h.

void ShipDesign::ParseComputer ( TermStruct val)

Definition at line 3029 of file ShipDesign.cpp.

void ShipDesign::ParseDeathSpiral ( TermStruct val)

Definition at line 3260 of file ShipDesign.cpp.

void ShipDesign::ParseDebris ( TermStruct val,
int  index 
)

Definition at line 3410 of file ShipDesign.cpp.

void ShipDesign::ParseDrive ( TermStruct val)

Definition at line 1633 of file ShipDesign.cpp.

void ShipDesign::ParseExplosion ( TermStruct val,
int  index 
)

Definition at line 3377 of file ShipDesign.cpp.

void ShipDesign::ParseFarcaster ( TermStruct val)

Definition at line 1918 of file ShipDesign.cpp.

void ShipDesign::ParseFlightDeck ( TermStruct val)

Definition at line 2291 of file ShipDesign.cpp.

void ShipDesign::ParseHardPoint ( TermStruct val)

Definition at line 2766 of file ShipDesign.cpp.

void ShipDesign::ParseLandingGear ( TermStruct val)

Definition at line 2471 of file ShipDesign.cpp.

void ShipDesign::ParseLoadout ( TermStruct val)

Definition at line 2867 of file ShipDesign.cpp.

void ShipDesign::ParseMap ( TermStruct val)

Definition at line 3477 of file ShipDesign.cpp.

void ShipDesign::ParseNavlight ( TermStruct val)

Definition at line 2193 of file ShipDesign.cpp.

void ShipDesign::ParseNavsys ( TermStruct val)

Definition at line 2980 of file ShipDesign.cpp.

void ShipDesign::ParsePower ( TermStruct val)

Definition at line 1523 of file ShipDesign.cpp.

void ShipDesign::ParseQuantumDrive ( TermStruct val)

Definition at line 1815 of file ShipDesign.cpp.

void ShipDesign::ParseSensor ( TermStruct val)

Definition at line 2897 of file ShipDesign.cpp.

void ShipDesign::ParseShield ( TermStruct val)

Definition at line 3088 of file ShipDesign.cpp.

void ShipDesign::ParseShip ( TermDef def)

Definition at line 1084 of file ShipDesign.cpp.

Skin * ShipDesign::ParseSkin ( TermStruct val)

Definition at line 3547 of file ShipDesign.cpp.

void ShipDesign::ParseSkinMtl ( TermStruct val,
Skin skin 
)

Definition at line 3590 of file ShipDesign.cpp.

void ShipDesign::ParseSquadron ( TermStruct val)

Definition at line 3503 of file ShipDesign.cpp.

void ShipDesign::ParseThruster ( TermStruct val)

Definition at line 2025 of file ShipDesign.cpp.

void ShipDesign::ParseWeapon ( TermStruct val)

Definition at line 2565 of file ShipDesign.cpp.

void ShipDesign::PreloadCatalog ( int  index = -1)
static

Definition at line 838 of file ShipDesign.cpp.

int ShipDesign::StandardCatalogSize ( )
static

Definition at line 832 of file ShipDesign.cpp.

static const char* ShipDesign::TYPENAME ( )
inlinestatic

Definition at line 112 of file ShipDesign.h.


Member Data Documentation

char ShipDesign::abrv[16]

Definition at line 175 of file ShipDesign.h.

float ShipDesign::acs

Definition at line 232 of file ShipDesign.h.

float ShipDesign::agility

Definition at line 200 of file ShipDesign.h.

float ShipDesign::air_factor

Definition at line 201 of file ShipDesign.h.

float ShipDesign::arcade_drag

Definition at line 217 of file ShipDesign.h.

int ShipDesign::auto_roll

Definition at line 178 of file ShipDesign.h.

float ShipDesign::avoid_fighter

Definition at line 238 of file ShipDesign.h.

float ShipDesign::avoid_strike

Definition at line 239 of file ShipDesign.h.

float ShipDesign::avoid_target

Definition at line 240 of file ShipDesign.h.

float ShipDesign::avoid_time

Definition at line 237 of file ShipDesign.h.

Text ShipDesign::beam_hit_sound

Definition at line 276 of file ShipDesign.h.

Sound* ShipDesign::beam_hit_sound_resource

Definition at line 279 of file ShipDesign.h.

Bitmap ShipDesign::beauty

Definition at line 285 of file ShipDesign.h.

Vec3 ShipDesign::beauty_cam

Definition at line 211 of file ShipDesign.h.

Text ShipDesign::bolt_hit_sound

Definition at line 275 of file ShipDesign.h.

Sound* ShipDesign::bolt_hit_sound_resource

Definition at line 278 of file ShipDesign.h.

Vec3 ShipDesign::bridge_vec

Definition at line 210 of file ShipDesign.h.

float ShipDesign::CD

Definition at line 221 of file ShipDesign.h.

Vec3 ShipDesign::chase_vec

Definition at line 209 of file ShipDesign.h.

float ShipDesign::CL

Definition at line 221 of file ShipDesign.h.

Model* ShipDesign::cockpit_model

Definition at line 195 of file ShipDesign.h.

float ShipDesign::cockpit_scale

Definition at line 196 of file ShipDesign.h.

float ShipDesign::commit_range

Definition at line 241 of file ShipDesign.h.

List<Computer> ShipDesign::computers

Definition at line 253 of file ShipDesign.h.

float ShipDesign::death_spiral_time

Definition at line 244 of file ShipDesign.h.

ShipDebris ShipDesign::debris[MAX_DEBRIS]

Definition at line 247 of file ShipDesign.h.

Weapon* ShipDesign::decoy

Definition at line 263 of file ShipDesign.h.

Text ShipDesign::description

Definition at line 181 of file ShipDesign.h.

float ShipDesign::detet

Definition at line 233 of file ShipDesign.h.

char ShipDesign::display_name[64]

Definition at line 174 of file ShipDesign.h.

float ShipDesign::drag

Definition at line 216 of file ShipDesign.h.

List<Drive> ShipDesign::drives

Definition at line 252 of file ShipDesign.h.

float ShipDesign::e_factor[3]

Definition at line 234 of file ShipDesign.h.

ShipExplosion ShipDesign::explosion[MAX_EXPLOSIONS]

Definition at line 246 of file ShipDesign.h.

float ShipDesign::explosion_scale

Definition at line 245 of file ShipDesign.h.

Farcaster* ShipDesign::farcaster

Definition at line 257 of file ShipDesign.h.

float ShipDesign::feature_size[4]

Definition at line 187 of file ShipDesign.h.

char ShipDesign::filename[64]

Definition at line 171 of file ShipDesign.h.

List<FlightDeck> ShipDesign::flight_decks

Definition at line 254 of file ShipDesign.h.

LandingGear* ShipDesign::gear

Definition at line 265 of file ShipDesign.h.

List<HardPoint> ShipDesign::hard_points

Definition at line 251 of file ShipDesign.h.

Bitmap ShipDesign::hud_icon

Definition at line 286 of file ShipDesign.h.

float ShipDesign::integrity

Definition at line 218 of file ShipDesign.h.

List<ShipLoad> ShipDesign::loadouts

Definition at line 281 of file ShipDesign.h.

int ShipDesign::lod_levels

Definition at line 184 of file ShipDesign.h.

int ShipDesign::main_drive

Definition at line 228 of file ShipDesign.h.

List<Bitmap> ShipDesign::map_sprites

Definition at line 282 of file ShipDesign.h.

float ShipDesign::mass

Definition at line 218 of file ShipDesign.h.

List<Model> ShipDesign::models[4]

Definition at line 185 of file ShipDesign.h.

char ShipDesign::name[64]

Definition at line 173 of file ShipDesign.h.

List<NavLight> ShipDesign::navlights

Definition at line 255 of file ShipDesign.h.

NavSystem* ShipDesign::navsys

Definition at line 260 of file ShipDesign.h.

List<Point> ShipDesign::offsets[4]

Definition at line 186 of file ShipDesign.h.

char ShipDesign::path_name[64]

Definition at line 172 of file ShipDesign.h.

float ShipDesign::pcs

Definition at line 231 of file ShipDesign.h.

float ShipDesign::pitch_drag

Definition at line 216 of file ShipDesign.h.

float ShipDesign::pitch_rate

Definition at line 203 of file ShipDesign.h.

float ShipDesign::prep_time

Definition at line 213 of file ShipDesign.h.

int ShipDesign::primary

Definition at line 224 of file ShipDesign.h.

Weapon* ShipDesign::probe

Definition at line 264 of file ShipDesign.h.

QuantumDrive* ShipDesign::quantum_drive

Definition at line 256 of file ShipDesign.h.

float ShipDesign::radius

Definition at line 218 of file ShipDesign.h.

List<PowerSource> ShipDesign::reactors

Definition at line 249 of file ShipDesign.h.

bool ShipDesign::repair_auto

Definition at line 271 of file ShipDesign.h.

bool ShipDesign::repair_screen

Definition at line 272 of file ShipDesign.h.

float ShipDesign::repair_speed

Definition at line 269 of file ShipDesign.h.

int ShipDesign::repair_teams

Definition at line 270 of file ShipDesign.h.

float ShipDesign::roll_drag

Definition at line 216 of file ShipDesign.h.

float ShipDesign::roll_rate

Definition at line 202 of file ShipDesign.h.

float ShipDesign::scale

Definition at line 177 of file ShipDesign.h.

float ShipDesign::scuttle

Definition at line 268 of file ShipDesign.h.

int ShipDesign::secondary

Definition at line 225 of file ShipDesign.h.

bool ShipDesign::secret

Definition at line 180 of file ShipDesign.h.

Sensor* ShipDesign::sensor

Definition at line 259 of file ShipDesign.h.

Shield* ShipDesign::shield

Definition at line 261 of file ShipDesign.h.

Model* ShipDesign::shield_model

Definition at line 262 of file ShipDesign.h.

List<Skin> ShipDesign::skins

Definition at line 191 of file ShipDesign.h.

List<Point> ShipDesign::spin_rates

Definition at line 188 of file ShipDesign.h.

float ShipDesign::splash_radius

Definition at line 267 of file ShipDesign.h.

List<ShipSquadron> ShipDesign::squadrons

Definition at line 283 of file ShipDesign.h.

float ShipDesign::stall

Definition at line 221 of file ShipDesign.h.

Thruster* ShipDesign::thruster

Definition at line 258 of file ShipDesign.h.

float ShipDesign::trans_x

Definition at line 205 of file ShipDesign.h.

float ShipDesign::trans_y

Definition at line 206 of file ShipDesign.h.

float ShipDesign::trans_z

Definition at line 207 of file ShipDesign.h.

float ShipDesign::turn_bank

Definition at line 208 of file ShipDesign.h.

int ShipDesign::type

Definition at line 176 of file ShipDesign.h.

bool ShipDesign::valid

Definition at line 179 of file ShipDesign.h.

float ShipDesign::vlimit

Definition at line 199 of file ShipDesign.h.

List<Weapon> ShipDesign::weapons

Definition at line 250 of file ShipDesign.h.

bool ShipDesign::wep_screen

Definition at line 273 of file ShipDesign.h.

float ShipDesign::yaw_drag

Definition at line 216 of file ShipDesign.h.

float ShipDesign::yaw_rate

Definition at line 204 of file ShipDesign.h.


The documentation for this class was generated from the following files: