#include <unitset.h>
Public Types | |
| enum | Type { unit, building } |
Public Member Functions | |
| SingleUnitSet (void) | |
| bool | isMember (int id, Type type) |
| void | read (tnstream *stream) |
| std::vector< IntRange > | parseIDs (const char *s) |
Public Attributes | |
| int | active |
| int | ID |
| ASCString | name |
| ASCString | maintainer |
| ASCString | information |
| std::vector< IntRange > | unitIds |
| std::vector< IntRange > | buildingIds |
| std::vector< TranslationTable * > | transtab |
| bool | filterBuildings |
Classes | |
| class | TranslationTable |
Definition at line 30 of file unitset.h.
| enum SingleUnitSet::Type |
| bool SingleUnitSet::isMember | ( | int | id, | |
| Type | type | |||
| ) |
| void SingleUnitSet::read | ( | tnstream * | stream | ) |
Definition at line 118 of file unitset.cpp.
References active, atoi(), buildingIds, filterBuildings, ID, information, maintainer, name, parseIDs(), SingleUnitSet::TranslationTable::parseString(), tnstream::readTextString(), s2, transtab, 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().
| std::vector<IntRange> SingleUnitSet::unitIds |
| std::vector<IntRange> SingleUnitSet::buildingIds |
| std::vector<TranslationTable*> SingleUnitSet::transtab |
1.5.1