Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

typen.cpp File Reference

#include <stdio.h>
#include <cstring>
#include <cmath>
#include "global.h"
#include "ascstring.h"
#include "stringtokenizer.h"
#include "misc.h"
#include "typen.h"
#include "graphicset.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "textfileparser.h"
#include "textfile_evaluation.h"

Include dependency graph for typen.cpp:

Go to the source code of this file.

Functions

Resources operator- (const Resources &res1, const Resources &res2)
Resources operator+ (const Resources &res1, const Resources &res2)
Resources operator * (const Resources &res1, float a)
Resources operator/ (const Resources &res1, float a)
vector< IntRangeString2IntRangeVector (const ASCString &t)

Variables

const char * choehenstufen [choehenstufennum] = {"deep submerged", "submerged", "floating", "ground level", "low-level flight", "flight", "high-level flight", "orbit"}
 The different levels of height.
const char * cmovemalitypes [cmovemalitypenum]
const char * moveMaliTypeIcons [cmovemalitypenum]
const char * cnetcontrol [cnetcontrolnum]
 The actions that can be used to control a ResourceNet.
const char * cgeneralnetcontrol [4] = { "store", "move out", "stop storing", "stop using" }
const char * cwettertypen [cwettertypennum] = {"dry (standard)","light rain", "heavy rain", "few snow", "lot of snow", "lot of snow + ice"}
const char * resourceNames [3] = {"energy", "material", "fuel"}
const int experienceDecreaseDamageBoundaries [experienceDecreaseDamageBoundaryNum] = { 80, 60, 40, 20 }
 when repairing a unit, the experience of the unit is decreased by one when passing each of these damage levels
const int directionangle [sidenum]
const int csolarkraftwerkleistung [cwettertypennum] = { 1024, 512, 256, 756, 384, 384 }


Function Documentation

Resources operator * const Resources res1,
float  a
 

Definition at line 209 of file typen.cpp.

References Resources::resource(), and resourceTypeNum.

Resources operator+ const Resources res1,
const Resources res2
 

Definition at line 202 of file typen.cpp.

Resources operator- const Resources res1,
const Resources res2
 

Definition at line 195 of file typen.cpp.

Resources operator/ const Resources res1,
float  a
 

Definition at line 217 of file typen.cpp.

References Resources::resource(), and resourceTypeNum.

vector<IntRange> String2IntRangeVector const ASCString t  ) 
 

Definition at line 286 of file typen.cpp.

References atoi(), and StringSplit::getNextToken().

Referenced by IntRangeArrayProperty::operation_eq().


Variable Documentation

const char* cgeneralnetcontrol[4] = { "store", "move out", "stop storing", "stop using" }
 

Definition at line 75 of file typen.cpp.

const char* choehenstufen[choehenstufennum] = {"deep submerged", "submerged", "floating", "ground level", "low-level flight", "flight", "high-level flight", "orbit"}
 

The different levels of height.

Definition at line 39 of file typen.cpp.

Referenced by AI::showFieldInformation().

const char* cmovemalitypes[cmovemalitypenum]
 

Initial value:

 { "default",
                                                 "light tracked vehicle", "medium tracked vehicle", "heavy tracked vehicle",
                                                 "light wheeled vehicle", "medium wheeled vehicle", "heavy wheeled vehicle",
                                                 "trooper",               "rail vehicle",           "medium aircraft",
                                                 "medium ship",           "building / turret / object", "light aircraft",
                                                 "heavy aircraft",        "light ship",             "heavy ship",  "helicopter",
                                                 "hoovercraft"  }

Definition at line 43 of file typen.cpp.

Referenced by UnitInfoDialog::UnitInfoDialog(), CargoDialog::userHandler(), and viewterraininfo().

const char* cnetcontrol[cnetcontrolnum]
 

Initial value:

 { "store energy",           "store material",           "store fuel",
                                            "move out all energy",           "move out all material",           "move out all fuel",
                                            "stop storing energy", "stop storing material", "stop storing fuel",
                                            "stop energy extraction", "stop material extraction", "stop fuelextraction" }
The actions that can be used to control a ResourceNet.

Definition at line 71 of file typen.cpp.

const int csolarkraftwerkleistung[cwettertypennum] = { 1024, 512, 256, 756, 384, 384 }
 

Definition at line 90 of file typen.cpp.

Referenced by SolarPowerplant::getPlus().

const char* cwettertypen[cwettertypennum] = {"dry (standard)","light rain", "heavy rain", "few snow", "lot of snow", "lot of snow + ice"}
 

Definition at line 78 of file typen.cpp.

Referenced by AddWeatherAreaDialog::AddWeatherAreaDialog(), chooseWeather(), WeatherAreaInformation::getInformation(), Maped_MainScreenWidget::Maped_MainScreenWidget(), viewterraininfo(), and WeatherDialog::WeatherDialog().

const int directionangle[sidenum]
 

Initial value:

 
 { 0, -53, -127, -180, -180 -53 , -180 -127 }

Definition at line 84 of file typen.cpp.

Referenced by UnitPropertyEditor::init(), and ContainerBase::paintField().

const int experienceDecreaseDamageBoundaries[experienceDecreaseDamageBoundaryNum] = { 80, 60, 40, 20 }
 

when repairing a unit, the experience of the unit is decreased by one when passing each of these damage levels

Definition at line 82 of file typen.cpp.

Referenced by Vehicle::postRepair().

const char* moveMaliTypeIcons[cmovemalitypenum]
 

Initial value:

 { "pad_symbol_default.png",
                                 "pad_symbol_lighttracked.png",
                                 "pad_symbol_mediumtracked.png",
                                 "pad_symbol_heavytracked.png",
                                 "pad_symbol_lightwheeled.png",
                                 "pad_symbol_mediumwheeled.png",
                                 "pad_symbol_heavywheeled.png",
                                 "pad_symbol_trooper.png",
                                 "pad_symbol_rail.png",
                                 "pad_symbol_mediumair.png",
                                 "pad_symbol_mediumship.png",
                                 "pad_symbol_turret.png",
                                 "pad_symbol_lightair.png",
                                 "pad_symbol_heavyair.png",
                                 "pad_symbol_lightship.png",
                                 "pad_symbol_heavyship.png",
                                 "pad_symbol_helicopter.png",
                                 "pad_symbol_hoovercraft.png" }

Definition at line 51 of file typen.cpp.

Referenced by CargoInfoWindow::update(), and CargoDialog::userHandler().

const char* resourceNames[3] = {"energy", "material", "fuel"}
 

Definition at line 79 of file typen.cpp.

Referenced by PutResource::checkbuilding(), GetResource::checkbuilding(), compareMapResources(), getPlayerStrength(), ttributepayments::init(), Resources::name(), resourceComparison(), MiningStation::run(), and Resources::toString().


Generated on Tue Jun 24 02:12:35 2008 for Advanced Strategic Command by  doxygen 1.4.2