WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <Creature_All.hpp>
Public Member Functions | |
Creature_Bat () | |
~Creature_Bat () | |
void | init (int _sex=0) |
virtual void | incrementTicks (int nTicks) override |
virtual void | attack (Creature *, Creature_Attack *) override |
virtual void | attack (Character *, Creature_Attack *) override |
virtual void | wander () override |
virtual Texture * | currentTexture () override |
virtual std::string | getName () override |
Public Member Functions inherited from Creature | |
Creature () | |
void | init (int _sex=0) |
void | die () |
bool | hasSeen (World_Local *, int, int) |
std::string | getColumn (std::string _column) override |
std::string | getColumnType (std::string _column) override |
void | updateKnowledge () |
void | updateKnowledgeIdle () |
Public Member Functions inherited from WorldObject | |
WorldObject () | |
virtual | ~WorldObject () |
virtual std::string | getExtendedInfo () |
int | distanceTo (WorldObject *) |
int | distanceFrom (WorldObject *) |
int | distanceTo (int, int) |
std::string | getBaseData () |
std::string | getSaveData () |
void | loadData (std::string) |
Additional Inherited Members | |
Public Attributes inherited from Creature | |
bool | isMale |
int | age |
int | daysCounter |
int | secondsCounter |
bool | isCarnivore |
int | actionPoints |
bool | isAlive |
int | health |
int | hunger |
int | thirst |
short int | fleeCounter |
World_Local * | map |
Creature_Knowledge * | knowledge |
Creature_Species * | species |
int | nPelt |
int | nMeat |
Vector< Creature_Attack * > | vAttack |
Texture * | baseTexture |
Public Attributes inherited from WorldObject | |
short int | x |
short int | y |
bool | isUnderground |
long unsigned int | fullX |
long unsigned int | fullY |
int | worldX |
int | worldY |
bool | stackable |
double | weight |
double | bulk |
bool | blocksView |
bool | blocksMovement |
bool | canCook |
int | chopAmount |
bool | canHarvest |
Creature_Bat::Creature_Bat | ( | ) |
Creature_Bat::~Creature_Bat | ( | ) |
|
overridevirtual |
Reimplemented from Creature.
|
overridevirtual |
Reimplemented from Creature.
|
overridevirtual |
Reimplemented from Creature.
|
overridevirtual |
Reimplemented from Creature.
|
overridevirtual |
Reimplemented from Creature.
void Creature_Bat::init | ( | int | _sex = 0 | ) |
|
overridevirtual |
Reimplemented from Creature.