#include <C4ObjectInfoList.h>
Public Member Functions | |
| C4ObjectInfoList () | |
| ~C4ObjectInfoList () | |
| void | Default () |
| void | Clear () |
| void | Evaluate () |
| void | DetachFromObjects () |
| int32_t | Load (C4Group &hGroup) |
| bool | Add (C4ObjectInfo *pInfo) |
| bool | Save (C4Group &hGroup, bool fSavegame, bool fStoreTiny, C4DefList *pDefs) |
| C4ObjectInfo * | New (C4ID n_id, C4DefList *pDefs) |
| C4ObjectInfo * | GetIdle (C4ID c_id, C4DefList &rDefs) |
| C4ObjectInfo * | GetIdle (const char *szByName) |
| C4ObjectInfo * | GetFirst () |
| bool | IsElement (C4ObjectInfo *pInfo) |
| void | Strip (C4DefList &rDefs) |
| void | MakeValidName (char *sName) |
| bool | NameExists (const char *szName) |
Public Attributes | |
| int32_t | iNumCreated |
Protected Member Functions | |
| C4ObjectInfo * | GetLast () |
| C4ObjectInfo * | GetPrevious (C4ObjectInfo *pInfo) |
Protected Attributes | |
| C4ObjectInfo * | First |
Definition at line 25 of file C4ObjectInfoList.h.
| C4ObjectInfoList::C4ObjectInfoList | ( | ) |
Definition at line 30 of file C4ObjectInfoList.cpp.
References Default().
| C4ObjectInfoList::~C4ObjectInfoList | ( | ) |
Definition at line 35 of file C4ObjectInfoList.cpp.
References Clear().
| bool C4ObjectInfoList::Add | ( | C4ObjectInfo * | pInfo | ) |
Definition at line 95 of file C4ObjectInfoList.cpp.
References First, and C4ObjectInfo::Next.
Referenced by Load(), and New().
| void C4ObjectInfoList::Clear | ( | ) |
Definition at line 46 of file C4ObjectInfoList.cpp.
References First, and C4ObjectInfo::Next.
Referenced by ~C4ObjectInfoList().
| void C4ObjectInfoList::Default | ( | ) |
Definition at line 40 of file C4ObjectInfoList.cpp.
References First, and iNumCreated.
Referenced by C4ObjectInfoList(), and C4Player::C4Player().
| void C4ObjectInfoList::DetachFromObjects | ( | ) |
Definition at line 262 of file C4ObjectInfoList.cpp.
References C4ObjectList::ClearInfo(), First, C4ObjectInfo::Next, and Objects.
Referenced by C4PlayerList::Remove().
| void C4ObjectInfoList::Evaluate | ( | ) |
Definition at line 211 of file C4ObjectInfoList.cpp.
References C4ObjectInfo::Evaluate(), First, and C4ObjectInfo::Next.
Referenced by C4Player::Evaluate().
|
inline |
Definition at line 45 of file C4ObjectInfoList.h.
References First.
Referenced by C4Player::LocalSync().
| C4ObjectInfo * C4ObjectInfoList::GetIdle | ( | C4ID | c_id, |
| C4DefList & | rDefs | ||
| ) |
Definition at line 134 of file C4ObjectInfoList.cpp.
References C4ObjectInfoCore::Experience, First, C4ObjectInfo::HasDied, C4ObjectInfoCore::id, C4DefList::ID2Def(), C4ObjectInfo::InAction, C4Def::NativeCrew, C4ObjectInfo::Next, C4ObjectInfoCore::Participation, and C4ObjectInfo::Recruit().
Referenced by C4Player::MakeCrewMember(), and C4Player::PlaceReadyCrew().
| C4ObjectInfo * C4ObjectInfoList::GetIdle | ( | const char * | szByName | ) |
Definition at line 244 of file C4ObjectInfoList.cpp.
References First, C4ObjectInfo::HasDied, C4ObjectInfo::InAction, C4ObjectInfoCore::Name, C4ObjectInfo::Next, C4ObjectInfoCore::Participation, C4ObjectInfo::Recruit(), and SEqualNoCase().
|
protected |
Definition at line 271 of file C4ObjectInfoList.cpp.
References First, and C4ObjectInfo::Next.
Referenced by Save().
|
protected |
Definition at line 281 of file C4ObjectInfoList.cpp.
References First, and C4ObjectInfo::Next.
Referenced by Save().
| bool C4ObjectInfoList::IsElement | ( | C4ObjectInfo * | pInfo | ) |
Definition at line 293 of file C4ObjectInfoList.cpp.
References First, and C4ObjectInfo::Next.
Referenced by C4Player::SetObjectCrewStatus().
| int32_t C4ObjectInfoList::Load | ( | C4Group & | hGroup | ) |
Definition at line 57 of file C4ObjectInfoList.cpp.
References Add(), C4CFN_ObjectInfoFiles, C4Group::FindNextEntry(), C4ObjectInfo::Load(), C4Group::OpenAsChild(), and C4Group::ResetSearch().
Referenced by C4Player::Load(), and C4Player::Strip().
| void C4ObjectInfoList::MakeValidName | ( | char * | sName | ) |
Definition at line 106 of file C4ObjectInfoList.cpp.
References C4MaxName, NameExists(), SCopy(), SLen(), and sprintf.
Referenced by New().
| bool C4ObjectInfoList::NameExists | ( | const char * | szName | ) |
Definition at line 121 of file C4ObjectInfoList.cpp.
References First, C4ObjectInfoCore::Name, C4ObjectInfo::Next, and SEqualNoCase().
Referenced by MakeValidName().
| C4ObjectInfo * C4ObjectInfoList::New | ( | C4ID | n_id, |
| C4DefList * | pDefs | ||
| ) |
Definition at line 173 of file C4ObjectInfoList.cpp.
References Add(), C4ObjectInfoCore::Birthday, C4ID::Clonk, Game, C4ComponentHost::GetData(), C4DefList::ID2Def(), iNumCreated, MakeValidName(), C4ObjectInfoCore::Name, C4Game::Names, C4ID::None, and C4Def::pClonkNames.
Referenced by C4Player::MakeCrewMember(), and C4Player::PlaceReadyCrew().
| bool C4ObjectInfoList::Save | ( | C4Group & | hGroup, |
| bool | fSavegame, | ||
| bool | fStoreTiny, | ||
| C4DefList * | pDefs | ||
| ) |
Definition at line 220 of file C4ObjectInfoList.cpp.
References C4Id2Def(), GetLast(), GetPrevious(), C4ObjectInfoCore::id, C4ObjectInfo::Save(), and C4Def::TemporaryCrew.
Referenced by C4Player::Save(), and C4Player::Strip().
| void C4ObjectInfoList::Strip | ( | C4DefList & | rDefs | ) |
Definition at line 305 of file C4ObjectInfoList.cpp.
References First, C4ObjectInfoCore::id, C4DefList::ID2Def(), and C4ObjectInfo::Next.
Referenced by C4Player::Save(), and C4Player::Strip().
|
protected |
Definition at line 31 of file C4ObjectInfoList.h.
Referenced by Add(), Clear(), Default(), DetachFromObjects(), Evaluate(), GetFirst(), GetIdle(), GetLast(), GetPrevious(), IsElement(), NameExists(), and Strip().
| int32_t C4ObjectInfoList::iNumCreated |
Definition at line 33 of file C4ObjectInfoList.h.
Referenced by C4Player::CompileFunc(), Default(), and New().