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

#include <LocalTile.hpp>

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

Public Member Functions

 LocalTile ()
 
 ~LocalTile ()
 
void add (WorldObject *)
 
void add (Item *)
 
void add (Character *)
 
void add (Creature *)
 
void remove (WorldObject *)
 
void remove (Item *)
 
void remove (Character *)
 
void remove (Creature *)
 
void clearObjects ()
 
virtual Texture * currentTexture ()
 
virtual Vector< Texture * > * currentTextures ()
 
bool hasViewBlocker ()
 
bool hasMovementBlocker ()
 
std::string getName ()
 
bool canTravelNorth ()
 
bool canTravelEast ()
 
bool canTravelSouth ()
 
bool canTravelWest ()
 
std::string getAll (int)
 
std::string getSaveData ()
 
std::string getAbstractData ()
 
void loadData (std::string)
 

Public Attributes

unsigned short int seed
 
enumBiome baseTerrain
 
unsigned char hasFloor
 
unsigned char bWall
 
bool bCliff
 
short int height
 
bool isLand
 
bool isCave
 
unsigned short int nGems
 
unsigned short int nMetal
 
int nFish
 
bool shotOverlay
 
Vector< WorldObject * > vObject
 
Vector< WorldObject * > vObjectGeneric
 
Vector< Item * > vItem
 
Vector< Character * > vCharacter
 
Vector< Creature * > vCreature
 
StaticobjStatic
 
Creature_Footprintfootprint
 

Constructor & Destructor Documentation

◆ LocalTile()

LocalTile::LocalTile ( )

◆ ~LocalTile()

LocalTile::~LocalTile ( )

Member Function Documentation

◆ add() [1/4]

void LocalTile::add ( WorldObject _object)

◆ add() [2/4]

void LocalTile::add ( Item _item)

◆ add() [3/4]

void LocalTile::add ( Character _character)

◆ add() [4/4]

void LocalTile::add ( Creature _creature)

◆ canTravelEast()

bool LocalTile::canTravelEast ( )

◆ canTravelNorth()

bool LocalTile::canTravelNorth ( )

◆ canTravelSouth()

bool LocalTile::canTravelSouth ( )

◆ canTravelWest()

bool LocalTile::canTravelWest ( )

◆ clearObjects()

void LocalTile::clearObjects ( )

◆ currentTexture()

Texture * LocalTile::currentTexture ( )
virtual

◆ currentTextures()

Vector< Texture * > * LocalTile::currentTextures ( )
virtual

◆ getAbstractData()

std::string LocalTile::getAbstractData ( )

◆ getAll()

std::string LocalTile::getAll ( int  max)

◆ getName()

std::string LocalTile::getName ( )

◆ getSaveData()

std::string LocalTile::getSaveData ( )

◆ hasMovementBlocker()

bool LocalTile::hasMovementBlocker ( )

◆ hasViewBlocker()

bool LocalTile::hasViewBlocker ( )

◆ loadData()

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

◆ remove() [1/4]

void LocalTile::remove ( WorldObject _object)

◆ remove() [2/4]

void LocalTile::remove ( Item _item)

◆ remove() [3/4]

void LocalTile::remove ( Character _character)

◆ remove() [4/4]

void LocalTile::remove ( Creature _creature)

Member Data Documentation

◆ baseTerrain

enumBiome LocalTile::baseTerrain

◆ bCliff

bool LocalTile::bCliff

◆ bWall

unsigned char LocalTile::bWall

◆ footprint

Creature_Footprint* LocalTile::footprint

◆ hasFloor

unsigned char LocalTile::hasFloor

◆ height

short int LocalTile::height

◆ isCave

bool LocalTile::isCave

◆ isLand

bool LocalTile::isLand

◆ nFish

int LocalTile::nFish

◆ nGems

unsigned short int LocalTile::nGems

◆ nMetal

unsigned short int LocalTile::nMetal

◆ objStatic

Static* LocalTile::objStatic

◆ seed

unsigned short int LocalTile::seed

◆ shotOverlay

bool LocalTile::shotOverlay

◆ vCharacter

Vector<Character*> LocalTile::vCharacter

◆ vCreature

Vector<Creature*> LocalTile::vCreature

◆ vItem

Vector<Item*> LocalTile::vItem

◆ vObject

Vector<WorldObject*> LocalTile::vObject

◆ vObjectGeneric

Vector<WorldObject*> LocalTile::vObjectGeneric

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