|
WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <Creature.hpp>


Public Member Functions | |
| Creature () | |
| void | init (int _sex=0) |
| virtual void | incrementTicks (int=1) |
| virtual void | wander () override |
| Texture * | currentTexture () override |
| void | die () |
| bool | hasSeen (World_Local *, int, int) |
| std::string | getColumn (std::string _column) override |
| std::string | getColumnType (std::string _column) override |
| virtual void | attack (Creature *, Creature_Attack *) |
| virtual void | attack (Character *, Creature_Attack *) |
| void | updateKnowledge () |
| void | updateKnowledgeIdle () |
| virtual std::string | getName () override |
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) |
Public Attributes | |
| 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::Creature | ( | ) |
|
inlinevirtual |
Reimplemented in Creature_CarnivoreSolo, Creature_CarnivorePack, Creature_HerbivoreScavenging, Creature_HerbivoreGrazing, and Creature_Bat.
|
inlinevirtual |
Reimplemented in Creature_CarnivoreSolo, Creature_CarnivorePack, Creature_HerbivoreScavenging, Creature_HerbivoreGrazing, and Creature_Bat.
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Creature_CarnivoreSolo, Creature_CarnivorePack, Creature_HerbivoreScavenging, Creature_HerbivoreGrazing, Creature_Bat, and Creature_Deer.
| void Creature::die | ( | ) |
|
override |
|
override |
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Creature_CarnivoreSolo, Creature_CarnivorePack, Creature_HerbivoreScavenging, Creature_HerbivoreGrazing, Creature_Bat, and Creature_Deer.
| bool Creature::hasSeen | ( | World_Local * | _map, |
| int | _x, | ||
| int | _y | ||
| ) |
|
virtual |
Reimplemented in Creature_CarnivoreSolo, Creature_CarnivorePack, Creature_HerbivoreScavenging, Creature_HerbivoreGrazing, and Creature_Bat.
| void Creature::init | ( | int | _sex = 0 | ) |
| void Creature::updateKnowledge | ( | ) |
| void Creature::updateKnowledgeIdle | ( | ) |
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Creature_CarnivoreSolo, Creature_CarnivorePack, Creature_HerbivoreScavenging, Creature_HerbivoreGrazing, and Creature_Bat.
| int Creature::actionPoints |
| int Creature::age |
| Texture* Creature::baseTexture |
| int Creature::daysCounter |
| short int Creature::fleeCounter |
| int Creature::health |
| int Creature::hunger |
| bool Creature::isAlive |
| bool Creature::isCarnivore |
| bool Creature::isMale |
| Creature_Knowledge* Creature::knowledge |
| World_Local* Creature::map |
| int Creature::nMeat |
| int Creature::nPelt |
| int Creature::secondsCounter |
| Creature_Species* Creature::species |
| int Creature::thirst |
| Vector<Creature_Attack*> Creature::vAttack |
1.8.13