Ares
Public Member Functions | Public Attributes

RadType Class Reference

#include <src/Enum/RadTypes.h>

Inheritance diagram for RadType:
Enumerable< RadType >

List of all members.

Public Member Functions

virtual void LoadFromINI (CCINIClass *pINI)
 RadType (const char *Title)
virtual ~RadType ()

Public Attributes

Customizable< WarheadTypeClass * > WH
Customizable< ColorStruct > Color
Customizable< int > Duration_Multiple
Customizable< int > Application_Delay
Customizable< int > Level_Max
Customizable< int > Level_Delay
Customizable< int > Light_Delay
Customizable< double > Level_Factor
Customizable< double > Light_Factor
Customizable< double > Tint_Factor

Constructor & Destructor Documentation

RadType::RadType ( const char *  Title) [inline]
                                   :
                WH(&RulesClass::Instance->RadSiteWarhead),
                Color(&RulesClass::Instance->RadColor),
                Duration_Multiple(&RulesClass::Instance->RadDurationMultiple),
                Application_Delay(&RulesClass::Instance->RadApplicationDelay),
                Level_Max(&RulesClass::Instance->RadLevelMax),
                Level_Delay(&RulesClass::Instance->RadLevelDelay),
                Light_Delay(&RulesClass::Instance->RadLightDelay),
                Level_Factor(&RulesClass::Instance->RadLevelFactor),
                Light_Factor(&RulesClass::Instance->RadLightFactor),
                Tint_Factor(&RulesClass::Instance->RadTintFactor)
        {
                AresCRT::strCopy(this->Name, Title, 32);
                Array.AddItem(this);
        }
virtual RadType::~RadType ( ) [inline, virtual]
        {
                RadType * placeholder = this;
                Array.RemoveItem(Array.FindItemIndex(&placeholder));
        }

Member Function Documentation

void RadType::LoadFromINI ( CCINIClass *  pINI) [virtual]
{
        const char *section = this->Name;

        INI_EX exINI(pINI);

        this->WH.Parse(&exINI, section, "Warhead");
        this->Color.Read(&exINI, section, "Color");
        this->Duration_Multiple.Read(&exINI, section, "DurationMultiple");
        this->Application_Delay.Read(&exINI, section, "ApplicationDelay");
        this->Level_Max.Read(&exINI, section, "LevelMax");
        this->Level_Delay.Read(&exINI, section, "LevelDelay");
        this->Light_Delay.Read(&exINI, section, "LightDelay");
        this->Level_Factor.Read(&exINI, section, "LevelFactor");
        this->Light_Factor.Read(&exINI, section, "LightFactor");
        this->Tint_Factor.Read(&exINI, section, "TintFactor");
}

Member Data Documentation

Customizable<WarheadTypeClass *> RadType::WH

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines