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

#include <WorldObject.hpp>

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

Public Member Functions

 WorldObject ()
 
virtual ~WorldObject ()
 
virtual std::string getName ()
 
virtual std::string getExtendedInfo ()
 
int distanceTo (WorldObject *)
 
int distanceFrom (WorldObject *)
 
int distanceTo (int, int)
 
virtual Texture * currentTexture ()
 
std::string getBaseData ()
 
std::string getSaveData ()
 
void loadData (std::string)
 

Public Attributes

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

WorldObject::WorldObject ( )

◆ ~WorldObject()

virtual WorldObject::~WorldObject ( )
inlinevirtual

Member Function Documentation

◆ currentTexture()

Texture * WorldObject::currentTexture ( )
virtual

◆ distanceFrom()

int WorldObject::distanceFrom ( WorldObject _obj)

◆ distanceTo() [1/2]

int WorldObject::distanceTo ( WorldObject _obj)

◆ distanceTo() [2/2]

int WorldObject::distanceTo ( int  _x,
int  _y 
)

◆ getBaseData()

std::string WorldObject::getBaseData ( )

◆ getExtendedInfo()

virtual std::string WorldObject::getExtendedInfo ( )
inlinevirtual

Reimplemented in Item.

◆ getName()

std::string WorldObject::getName ( )
virtual

◆ getSaveData()

std::string WorldObject::getSaveData ( )

◆ loadData()

void WorldObject::loadData ( std::string  _saveData)

Member Data Documentation

◆ blocksMovement

bool WorldObject::blocksMovement

◆ blocksView

bool WorldObject::blocksView

◆ bulk

double WorldObject::bulk

◆ canCook

bool WorldObject::canCook

◆ canHarvest

bool WorldObject::canHarvest

◆ chopAmount

int WorldObject::chopAmount

◆ fullX

long unsigned int WorldObject::fullX

◆ fullY

long unsigned int WorldObject::fullY

◆ isUnderground

bool WorldObject::isUnderground

◆ stackable

bool WorldObject::stackable

◆ weight

double WorldObject::weight

◆ worldX

int WorldObject::worldX

◆ worldY

int WorldObject::worldY

◆ x

short int WorldObject::x

◆ y

short int WorldObject::y

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