Advanced Strategic Command
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
SingleUnitSet Class Reference

#include <unitset.h>

Classes

class  TranslationTable
 

Public Types

enum  Type { unit, building }
 

Public Member Functions

 SingleUnitSet (void)
 
bool isMember (int id, Type type)
 
void read (tnstream *stream)
 
std::vector< IntRangeparseIDs (const char *s)
 

Public Attributes

int active
 
int ID
 
ASCString name
 
ASCString maintainer
 
ASCString information
 
std::vector< IntRangeunitIds
 
std::vector< IntRangebuildingIds
 
std::vector< TranslationTable * > transtab
 
bool filterBuildings
 

Detailed Description

Definition at line 30 of file unitset.h.

Member Enumeration Documentation

Enumerator
unit 
building 

Definition at line 33 of file unitset.h.

Constructor & Destructor Documentation

SingleUnitSet::SingleUnitSet ( void  )
inline

Definition at line 54 of file unitset.h.

Referenced by loadUnitSets().

Member Function Documentation

bool SingleUnitSet::isMember ( int  id,
Type  type 
)

Definition at line 36 of file unitset.cpp.

References building, buildingIds, unit, and unitIds.

std::vector< IntRange > SingleUnitSet::parseIDs ( const char *  s)

Definition at line 52 of file unitset.cpp.

References atoi(), IntRange::from, and IntRange::to.

Referenced by read().

void SingleUnitSet::read ( tnstream stream)

Member Data Documentation

int SingleUnitSet::active

Definition at line 43 of file unitset.h.

Referenced by read().

std::vector<IntRange> SingleUnitSet::buildingIds

Definition at line 50 of file unitset.h.

Referenced by isMember(), and read().

bool SingleUnitSet::filterBuildings

Definition at line 52 of file unitset.h.

Referenced by read().

int SingleUnitSet::ID

Definition at line 44 of file unitset.h.

Referenced by read().

ASCString SingleUnitSet::information

Definition at line 47 of file unitset.h.

Referenced by read().

ASCString SingleUnitSet::maintainer

Definition at line 46 of file unitset.h.

Referenced by read().

ASCString SingleUnitSet::name

Definition at line 45 of file unitset.h.

Referenced by read().

std::vector<TranslationTable*> SingleUnitSet::transtab

Definition at line 51 of file unitset.h.

Referenced by read().

std::vector<IntRange> SingleUnitSet::unitIds

Definition at line 49 of file unitset.h.

Referenced by isMember(), and read().


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