Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ship_commands.cpp File Reference
#include "cmd/unit_generic.h"
#include "config_xml.h"
#include "xml_support.h"
#include "vs_globals.h"
#include "universe_util.h"
#include "gldrv/winsys.h"

Go to the source code of this file.

Classes

class  ShipCommands
 

Functions

static float fmin (float a, float b)
 
static float fmax (float a, float b)
 
void InitShipCommands ()
 
void UninitShipCommands ()
 

Variables

static ShipCommandsship_commands = NULL
 

Function Documentation

static float fmax ( float  a,
float  b 
)
inlinestatic

Definition at line 12 of file ship_commands.cpp.

References b.

13 {
14  return (a > b) ? a : b;
15 }
static float fmin ( float  a,
float  b 
)
inlinestatic

Definition at line 8 of file ship_commands.cpp.

References b.

Referenced by ShipCommands::setkps().

9 {
10  return (a < b) ? a : b;
11 }
void InitShipCommands ( )

Definition at line 139 of file ship_commands.cpp.

References ship_commands.

Referenced by main().

140 {
141  if (ship_commands) delete ship_commands;
143 }
void UninitShipCommands ( )

Definition at line 145 of file ship_commands.cpp.

References ship_commands.

Referenced by main().

146 {
147  if (ship_commands) delete ship_commands;
148  ship_commands = NULL;
149 }

Variable Documentation

ShipCommands* ship_commands = NULL
static

Definition at line 119 of file ship_commands.cpp.

Referenced by InitShipCommands(), and UninitShipCommands().