#include <src/Utilities/Template.h>
List of all members.
template<typename T>
class Promotable< T >
Constructor & Destructor Documentation
Member Function Documentation
{
this->_BindTo = Object;
return this;
}
{
return *this->GetEx();
}
{
if(!this->_BindTo) {
Debug::Log("Promotable<T> invoked without an owner!\n");
throw std::logic_error("Promotable<T> invoked without an owner!\n");
}
VeterancyStruct *XP = &this->_BindTo->Veterancy;
if(XP->IsElite()) {
return &this->Elite;
}
if(XP->IsVeteran()) {
return &this->Veteran;
}
return &this->Rookie;
}
template<typename T>
void Promotable< T >::LoadFromINI |
( |
CCINIClass * |
pINI, |
|
|
const char * |
Section, |
|
|
const char * |
BaseFlag |
|
) |
| [inline] |
{
unsigned int buflen = strlen(BaseFlag) + 8;
char *FlagName = new char[buflen];
Customizable<T> Placeholder;
INI_EX exINI(pINI);
Placeholder.Set(this->Rookie);
_snprintf(FlagName, buflen, BaseFlag, "Rookie");
Placeholder.Read(&exINI, Section, FlagName);
this->Rookie = Placeholder.Get();
Placeholder.Set(this->Veteran);
_snprintf(FlagName, buflen, BaseFlag, "Veteran");
Placeholder.Read(&exINI, Section, FlagName);
this->Veteran = Placeholder.Get();
Placeholder.Set(this->Elite);
_snprintf(FlagName, buflen, BaseFlag, "Elite");
Placeholder.Read(&exINI, Section, FlagName);
this->Elite = Placeholder.Get();
delete[] FlagName;
}
Member Data Documentation
The documentation for this class was generated from the following file: