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

#include <WorldObject_Flora.hpp>

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

Public Member Functions

 WorldObject_Flora ()
 
virtual ~WorldObject_Flora ()
 
virtual std::string getName () override
 
virtual Texture * currentTexture () override
 
virtual void generate ()
 
- Public Member Functions inherited from WorldObject
 WorldObject ()
 
virtual ~WorldObject ()
 
virtual std::string getExtendedInfo ()
 
virtual void wander ()
 
int distanceTo (WorldObject *)
 
int distanceFrom (WorldObject *)
 
int distanceTo (int, int)
 
std::string getBaseData ()
 
std::string getSaveData ()
 
void loadData (std::string)
 

Public Attributes

std::string name
 
int growth
 
- 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

◆ WorldObject_Flora()

WorldObject_Flora::WorldObject_Flora ( )

◆ ~WorldObject_Flora()

virtual WorldObject_Flora::~WorldObject_Flora ( )
inlinevirtual

Member Function Documentation

◆ currentTexture()

Texture * WorldObject_Flora::currentTexture ( )
overridevirtual

Reimplemented from WorldObject.

Reimplemented in Flora_Blueweed, Flora_Redweed, and Flora_Blackweed.

◆ generate()

void WorldObject_Flora::generate ( )
virtual

◆ getName()

std::string WorldObject_Flora::getName ( )
overridevirtual

Reimplemented from WorldObject.

Reimplemented in Flora_Blueweed, Flora_Redweed, and Flora_Blackweed.

Member Data Documentation

◆ growth

int WorldObject_Flora::growth

◆ name

std::string WorldObject_Flora::name

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