Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CombatGroup.cpp File Reference
#include "MemDebug.h"
#include "CombatGroup.h"
#include "CombatUnit.h"
#include "CombatZone.h"
#include "Combatant.h"
#include "CombatAssignment.h"
#include "Campaign.h"
#include "ShipDesign.h"
#include "Ship.h"
#include "Game.h"
#include "DataLoader.h"
#include "ParseUtil.h"

Go to the source code of this file.

Macros

#define GET_DEF_BOOL(n)   if (pdef->name()->value()==(#n)) GetDefBool((n), pdef, filename)
#define GET_DEF_TEXT(n)   if (pdef->name()->value()==(#n)) GetDefText((n), pdef, filename)
#define GET_DEF_NUM(n)   if (pdef->name()->value()==(#n)) GetDefNumber((n), pdef, filename)
#define GET_DEF_VEC(n)   if (pdef->name()->value()==(#n)) GetDefVec((n), pdef, filename)

Functions

int ShipClassFromName (const char *type_name)
Text FormatNumber (double n)
void SaveCombatUnit (FILE *f, CombatUnit *u)
void SaveCombatGroup (FILE *f, CombatGroup *g)

Macro Definition Documentation

#define GET_DEF_BOOL (   n)    if (pdef->name()->value()==(#n)) GetDefBool((n), pdef, filename)

Definition at line 960 of file CombatGroup.cpp.

#define GET_DEF_NUM (   n)    if (pdef->name()->value()==(#n)) GetDefNumber((n), pdef, filename)

Definition at line 962 of file CombatGroup.cpp.

#define GET_DEF_TEXT (   n)    if (pdef->name()->value()==(#n)) GetDefText((n), pdef, filename)

Definition at line 961 of file CombatGroup.cpp.

#define GET_DEF_VEC (   n)    if (pdef->name()->value()==(#n)) GetDefVec((n), pdef, filename)

Definition at line 963 of file CombatGroup.cpp.


Function Documentation

Text FormatNumber ( double  n)

Definition at line 1471 of file CombatGroup.cpp.

void SaveCombatGroup ( FILE *  f,
CombatGroup g 
)

Definition at line 1526 of file CombatGroup.cpp.

void SaveCombatUnit ( FILE *  f,
CombatUnit u 
)

Definition at line 1490 of file CombatGroup.cpp.

int ShipClassFromName ( const char *  type_name)

Definition at line 953 of file CombatGroup.cpp.