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
NebulaXML Namespace Reference

Enumerations

enum  Names {
  UNKNOWN, NEBULA, RED, GREEN,
  BLUE, COLOR, MODE, NEBNEAR,
  NEBFAR, DENSITY, LIMITS, INDEX,
  EXPLOSIONTIME, FOGTHIS
}
 

Functions

FOGMODE parse_fogmode (string val)
 
const EnumMap element_map (element_names, MAXENAMES)
 
const EnumMap attribute_map (attribute_names, MAXANAMES)
 

Variables

const unsigned short int MAXENAMES = 4
 
const unsigned short int MAXANAMES = 11
 
const EnumMap::Pair element_names [MAXENAMES]
 
const EnumMap::Pair attribute_names [MAXANAMES]
 

Enumeration Type Documentation

Enumerator
UNKNOWN 
NEBULA 
RED 
GREEN 
BLUE 
COLOR 
MODE 
NEBNEAR 
NEBFAR 
DENSITY 
LIMITS 
INDEX 
EXPLOSIONTIME 
FOGTHIS 

Definition at line 70 of file nebula_generic.h.

71 {
72  UNKNOWN,
73  NEBULA,
74  RED,
75  GREEN,
76  BLUE,
77  COLOR,
78  MODE,
79  NEBNEAR,
80  NEBFAR,
81  DENSITY,
82  LIMITS,
83  INDEX,
85  FOGTHIS
86 };

Function Documentation

const EnumMap NebulaXML::attribute_map ( attribute_names  ,
MAXANAMES   
)

Referenced by Nebula::beginElem().

const EnumMap NebulaXML::element_map ( element_names  ,
MAXENAMES   
)

Referenced by Nebula::beginElem().

FOGMODE NebulaXML::parse_fogmode ( string  val)

Definition at line 16 of file nebula_generic.cpp.

References FOG_EXP, FOG_EXP2, FOG_LINEAR, and FOG_OFF.

Referenced by Nebula::beginElem().

17 {
18  if (val == "exp")
19  return FOG_EXP;
20  else if (val == "exp2")
21  return FOG_EXP2;
22  else if (val == "linear")
23  return FOG_LINEAR;
24  else
25  return FOG_OFF;
26 }

Variable Documentation

const EnumMap::Pair NebulaXML::attribute_names[MAXANAMES]
Initial value:
= {
EnumMap::Pair( "UNKNOWN", UNKNOWN ),
EnumMap::Pair( "Red", RED ),
EnumMap::Pair( "Green", GREEN ),
EnumMap::Pair( "Blue", BLUE ),
EnumMap::Pair( "Near", NEBNEAR ),
EnumMap::Pair( "Far", NEBFAR ),
EnumMap::Pair( "Density", DENSITY ),
EnumMap::Pair( "Mode", MODE ),
EnumMap::Pair( "Index", INDEX ),
EnumMap::Pair( "ExplosionTime", EXPLOSIONTIME ),
EnumMap::Pair( "FogThis", FOGTHIS )
}

Definition at line 96 of file nebula_generic.h.

const EnumMap::Pair NebulaXML::element_names[MAXENAMES]
Initial value:
= {
EnumMap::Pair( "UNKNOWN", UNKNOWN ),
EnumMap::Pair( "Nebula", NEBULA ),
EnumMap::Pair( "Color", COLOR ),
EnumMap::Pair( "Limits", LIMITS ),
}

Definition at line 90 of file nebula_generic.h.

const unsigned short int NebulaXML::MAXANAMES = 11

Definition at line 88 of file nebula_generic.h.

const unsigned short int NebulaXML::MAXENAMES = 4

Definition at line 87 of file nebula_generic.h.