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

#include <WorldObject_Tree.hpp>

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

Public Member Functions

 WorldObject_Tree (int _growth=0)
 
virtual ~WorldObject_Tree ()
 
virtual std::string getName ()
 
virtual Texture * currentTexture ()
 
- 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

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_Tree()

WorldObject_Tree::WorldObject_Tree ( int  _growth = 0)

◆ ~WorldObject_Tree()

virtual WorldObject_Tree::~WorldObject_Tree ( )
inlinevirtual

Member Function Documentation

◆ currentTexture()

Texture * WorldObject_Tree::currentTexture ( )
virtual

Reimplemented from WorldObject.

◆ getName()

std::string WorldObject_Tree::getName ( )
virtual

Reimplemented from WorldObject.

Member Data Documentation

◆ growth

int WorldObject_Tree::growth

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