#include <ObjectTypes.h>
Inherits MemoryPoolObject, and Snapshot.
Public Member Functions | |
| ObjectTypes () | |
| ObjectTypes (const AsciiString &listName) | |
| void | addObjectType (const AsciiString &objectType) |
| void | removeObjectType (const AsciiString &objectType) |
| const AsciiString & | getListName () const |
| void | setListName (const AsciiString &listName) |
| Bool | isInSet (const AsciiString &objectType) const |
| Bool | isInSet (const ThingTemplate *objectType) const |
| UnsignedInt | getListSize (void) const |
| AsciiString | getNthInList (Int index) const |
| Int | prepForPlayerCounting (std::vector< const ThingTemplate * > &templates, std::vector< Int > &counts) |
| Bool | canBuildAny (Player *player) |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Protected Member Functions | |
| virtual void | crc (Xfer *xfer) |
| run the "light" crc check on this data structure | |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess () |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 40 of file ObjectTypes.h.
| ObjectTypes::ObjectTypes | ( | ) |
Definition at line 40 of file ObjectTypes.cpp.
| ObjectTypes::ObjectTypes | ( | const AsciiString & | listName | ) |
Definition at line 46 of file ObjectTypes.cpp.
| void ObjectTypes::addObjectType | ( | const AsciiString & | objectType | ) |
Definition at line 52 of file ObjectTypes.cpp.
Definition at line 121 of file ObjectTypes.cpp.
|
protectedvirtual |
run the "light" crc check on this data structure
Implements Snapshot.
Definition at line 135 of file ObjectTypes.cpp.
| const AsciiString & ObjectTypes::getListName | ( | ) | const |
Definition at line 75 of file ObjectTypes.cpp.
|
inline |
Definition at line 78 of file ObjectTypes.h.
|
inline |
Definition at line 81 of file ObjectTypes.h.
| Bool ObjectTypes::isInSet | ( | const AsciiString & | objectType | ) | const |
Definition at line 87 of file ObjectTypes.cpp.
| Bool ObjectTypes::isInSet | ( | const ThingTemplate * | objectType | ) | const |
Definition at line 94 of file ObjectTypes.cpp.
|
protectedvirtual |
post process phase for loading save games. All save systems have their xfer run using XferLoad mode, and then all systems each have their post process run
Implements Snapshot.
Definition at line 205 of file ObjectTypes.cpp.
| Int ObjectTypes::prepForPlayerCounting | ( | std::vector< const ThingTemplate * > & | templates, |
| std::vector< Int > & | counts ) |
Definition at line 104 of file ObjectTypes.cpp.
| void ObjectTypes::removeObjectType | ( | const AsciiString & | objectType | ) |
Definition at line 62 of file ObjectTypes.cpp.
| void ObjectTypes::setListName | ( | const AsciiString & | listName | ) |
Definition at line 81 of file ObjectTypes.cpp.
|
protectedvirtual |
Version Info: 1: Initial version
Implements Snapshot.
Definition at line 145 of file ObjectTypes.cpp.