Cyrus Mod Loader
Loading...
Searching...
No Matches
PestBehaviorTemplate Class Reference

#include <PestBehaviorTemplate.h>

Inheritance diagram for PestBehaviorTemplate:
BehaviorTemplate PropertyClass

Public Member Functions

int getPestRank ()
 
void setPestRank (int val)
 
std::string getWiltMinRate ()
 
void setWiltMinRate (std::string val)
 
std::string getWiltMaxRate ()
 
void setWiltMaxRate (std::string val)
 
bool getGoodPest ()
 
void setGoodPest (bool val)
 
bool getUseSizeAnimations ()
 
void setUseSizeAnimations (bool val)
 
bool getProvidesWater ()
 
void setProvidesWater (bool val)
 
bool getProvidesSun ()
 
void setProvidesSun (bool val)
 
bool getProvidesPollination ()
 
void setProvidesPollination (bool val)
 
bool getProvidesMagic ()
 
void setProvidesMagic (bool val)
 
bool getProvidesMusic ()
 
void setProvidesMusic (bool val)
 
- Public Member Functions inherited from PropertyClass
virtual char * getClassName ()=0
 Gets the class name of the derived class in the format class T[*].
 
virtual void * getPropertyList ()=0
 Constructs and caches the PropertyList for the derived class, adding all reflected members and member functions.
 
virtual bool copy (uint32_t a1)=0
 Copies the property class data.
 
virtual void * serialize (void *a2, uint32_t a3)=0
 Serializes the derived class's PropertyList as XML.
 
virtual bool onCreated ()=0
 Called when the PropertyClass is created.
 
template<typename T >
CYRUS T * as ()
 Casts this to a pointer of type T.
 
virtual void onPostLoad ()=0
 Called when the PropertyClass is loaded, i.e., initialize is called and onCreated has finished.
 
virtual void onFinalizeLoad ()=0
 
virtual bool shouldNotSerialize ()=0
 Determines if the PropertyClass should not be serialized.
 

Additional Inherited Members

- Public Attributes inherited from BehaviorTemplate
std::string name
 

Member Function Documentation

◆ getGoodPest()

bool PestBehaviorTemplate::getGoodPest ( )
inline

◆ getPestRank()

int PestBehaviorTemplate::getPestRank ( )
inline

◆ getProvidesMagic()

bool PestBehaviorTemplate::getProvidesMagic ( )
inline

◆ getProvidesMusic()

bool PestBehaviorTemplate::getProvidesMusic ( )
inline

◆ getProvidesPollination()

bool PestBehaviorTemplate::getProvidesPollination ( )
inline

◆ getProvidesSun()

bool PestBehaviorTemplate::getProvidesSun ( )
inline

◆ getProvidesWater()

bool PestBehaviorTemplate::getProvidesWater ( )
inline

◆ getUseSizeAnimations()

bool PestBehaviorTemplate::getUseSizeAnimations ( )
inline

◆ getWiltMaxRate()

std::string PestBehaviorTemplate::getWiltMaxRate ( )
inline

◆ getWiltMinRate()

std::string PestBehaviorTemplate::getWiltMinRate ( )
inline

◆ setGoodPest()

void PestBehaviorTemplate::setGoodPest ( bool val)
inline

◆ setPestRank()

void PestBehaviorTemplate::setPestRank ( int val)
inline

◆ setProvidesMagic()

void PestBehaviorTemplate::setProvidesMagic ( bool val)
inline

◆ setProvidesMusic()

void PestBehaviorTemplate::setProvidesMusic ( bool val)
inline

◆ setProvidesPollination()

void PestBehaviorTemplate::setProvidesPollination ( bool val)
inline

◆ setProvidesSun()

void PestBehaviorTemplate::setProvidesSun ( bool val)
inline

◆ setProvidesWater()

void PestBehaviorTemplate::setProvidesWater ( bool val)
inline

◆ setUseSizeAnimations()

void PestBehaviorTemplate::setUseSizeAnimations ( bool val)
inline

◆ setWiltMaxRate()

void PestBehaviorTemplate::setWiltMaxRate ( std::string val)
inline

◆ setWiltMinRate()

void PestBehaviorTemplate::setWiltMinRate ( std::string val)
inline