WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Public Member Functions | List of all members
Creature_CarnivoreSolo Class Reference

#include <Creature_All.hpp>

Inheritance diagram for Creature_CarnivoreSolo:
Inheritance graph
[legend]
Collaboration diagram for Creature_CarnivoreSolo:
Collaboration graph
[legend]

Public Member Functions

 Creature_CarnivoreSolo ()
 
 ~Creature_CarnivoreSolo ()
 
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_Localmap
 
Creature_Knowledgeknowledge
 
Creature_Speciesspecies
 
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
 

Constructor & Destructor Documentation

◆ Creature_CarnivoreSolo()

Creature_CarnivoreSolo::Creature_CarnivoreSolo ( )

◆ ~Creature_CarnivoreSolo()

Creature_CarnivoreSolo::~Creature_CarnivoreSolo ( )

Member Function Documentation

◆ attack() [1/2]

virtual void Creature_CarnivoreSolo::attack ( Creature ,
Creature_Attack  
)
overridevirtual

Reimplemented from Creature.

◆ attack() [2/2]

virtual void Creature_CarnivoreSolo::attack ( Character ,
Creature_Attack  
)
overridevirtual

Reimplemented from Creature.

◆ currentTexture()

virtual Texture* Creature_CarnivoreSolo::currentTexture ( )
overridevirtual

Reimplemented from Creature.

◆ getName()

virtual std::string Creature_CarnivoreSolo::getName ( )
overridevirtual

Reimplemented from Creature.

◆ incrementTicks()

virtual void Creature_CarnivoreSolo::incrementTicks ( int  nTicks)
overridevirtual

Reimplemented from Creature.

◆ init()

void Creature_CarnivoreSolo::init ( int  _sex = 0)

◆ wander()

virtual void Creature_CarnivoreSolo::wander ( )
overridevirtual

Reimplemented from Creature.


The documentation for this class was generated from the following file: