|
WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <World_Local.hpp>


Public Member Functions | |
| std::string | getTerrainName () |
| void | addInfluence (Tribe *tribe, int amount) |
| void | removeInfluence (Tribe *tribe, int amount) |
| void | degradeInfluence (int amount) |
| void | destroyInfluence (Tribe *tribe) |
| Tribe * | getDominantInfluence () |
| int | getDominantInfluenceValue () |
| World_Local () | |
| virtual | ~World_Local () |
| void | unload () |
| void | init (const int _globalX, const int _globalY, const enumBiome _biomeID, const int _seed, const int _hasRiver) |
| LocalTile * | operator() (int _x, int _y) |
| bool | isSafe (int, int) |
| bool | isSafe (HasXY *) |
| bool | isSafe (WorldObject *) |
| bool | isLand () |
| bool | generate (bool cache=true, World_Local *c0=0, World_Local *c1=0, World_Local *c2=0, World_Local *c3=0, World_Local *c4=0, World_Local *c5=0, World_Local *c6=0, World_Local *c7=0) |
| bool | generateSubterranean () |
| bool | save () |
| std::string | getSaveData () |
| bool | load () |
| void | generateHeightMap (const short int c0=0, const short int c1=0, const short int c2=0, const short int c3=0, const short int c4=0, const short int c5=0, const short int c6=0, const short int c7=0, const unsigned int _seed=0) |
| Creature * | spawnCreature () |
| bool | put (WorldObject *, int, int, bool subterranean=false) |
| bool | put (Item *, int, int, bool subterranean=false) |
| bool | put (Character *, int, int, bool subterranean=false) |
| bool | put (Creature *, int, int, bool subterranean=false) |
| bool | put (WorldObject *_object, HasXY *_xy, bool subterranean=false) |
| bool | put (Item *_object, HasXY *_xy, bool subterranean=false) |
| bool | put (Character *_object, HasXY *_xy, bool subterranean=false) |
| bool | put (Creature *_object, HasXY *_xy, bool subterranean=false) |
| bool | put (WorldObject *_object, HasXY _xy, bool subterranean=false) |
| bool | put (Item *_object, HasXY _xy, bool subterranean=false) |
| bool | put (Character *_object, HasXY _xy, bool subterranean=false) |
| bool | put (Creature *_object, HasXY _xy, bool subterranean=false) |
| bool | put (Static *_static, int, int, bool subterranean=false) |
| bool | put (Static *_static, HasXY _xy, bool subterranean=false) |
| bool | put (Static *_static, HasXY *_xy, bool subterranean=false) |
| bool | remove (WorldObject *) |
| bool | remove (Item *) |
| bool | remove (Character *) |
| bool | remove (Creature *) |
| bool | erase (WorldObject *) |
| bool | erase (Item *) |
| bool | erase (Character *) |
| bool | erase (Creature *) |
| bool | contains (WorldObject *) |
| bool | contains (Character *) |
| bool | moveObject (WorldObject *, int, int) |
| bool | moveObject (Character *, int, int) |
| bool | moveObject (WorldObject *, const enumDirection) |
| bool | moveDown (WorldObject *) |
| bool | moveDown (Character *) |
| bool | moveUp (WorldObject *) |
| bool | moveUp (Character *) |
| bool | wander (WorldObject *) |
| bool | wander (Character *) |
| bool | wander (Creature *) |
| Vector< Character * > * | getAdjacentCharacters (int, int) |
| HasXY * | getRandomTile () |
| HasXY * | getRandomNeighbor (HasXY *) |
| Vector< HasXY * > * | getRandomWalk (int) |
| bool | isBlockingView (int, int) |
| Vector< HasXY * > * | rayTraceLOS (int, int, const int, const bool subterranean=false) |
| Vector< HasXY2< unsigned long int > * > * | rayTraceLOS (long unsigned int, long unsigned int, const int) |
| void | rayTrace (int, int, int, int, Vector< HasXY *> *, const bool subterranean=false) |
| void | incrementTicks (int nTicks) |
| void | updateTickBacklog (Calendar) |
| virtual Texture * | currentTexture () |
Public Attributes | |
| Data * | data |
| Data_Subterranean * | dataSubterranean |
| AbstractData * | abstractData |
| World_Biome * | biome |
| unsigned long int | accessNumber |
| Texture | texFar |
| Calendar | localDate |
| bool | hasCave |
| bool | hasRuin |
| std::atomic< short int > | globalX_TS |
| std::atomic< short int > | globalY_TS |
| short int | globalX |
| short int | globalY |
| std::atomic< bool > | threadAccess |
| std::atomic< bool > | initialized |
| std::atomic< bool > | active |
| int | testValue |
| short int | baseMetal |
| short int | baseFertility |
| bool | canMove |
| short int | landID |
| short int | biomeID |
| short int | hasRiver |
| char | riverConnections |
| unsigned int | nFloraGrass |
| unsigned int | nFloraGood |
| unsigned int | nFloraDifficult |
| unsigned short int | centerHeight |
| ArrayS2< char > | aHeightDiff |
| ArrayS2< int > | aFullHeight |
| short int | nX |
| short int | nY |
| long long unsigned int | ticksBacklog |
| enumBiome | baseBiome |
| Vector< Creature * > | vCreature |
| Vector< Character * > | vCharacter |
| Vector< Item * > | vItem |
| Vector< WorldObject * > | vObjectGeneric |
| World_Local::World_Local | ( | ) |
Implementation of World_Local.hpp
|
virtual |
| void World_Local::addInfluence | ( | Tribe * | tribe, |
| int | amount | ||
| ) |
| bool World_Local::contains | ( | WorldObject * | _target | ) |
| bool World_Local::contains | ( | Character * | _target | ) |
|
virtual |
| void World_Local::degradeInfluence | ( | int | amount | ) |
| void World_Local::destroyInfluence | ( | Tribe * | tribe | ) |
| bool World_Local::erase | ( | WorldObject * | _object | ) |
| bool World_Local::erase | ( | Item * | _item | ) |
| bool World_Local::erase | ( | Character * | _character | ) |
| bool World_Local::erase | ( | Creature * | _creature | ) |
| bool World_Local::generate | ( | bool | cache = true, |
| World_Local * | c0 = 0, |
||
| World_Local * | c1 = 0, |
||
| World_Local * | c2 = 0, |
||
| World_Local * | c3 = 0, |
||
| World_Local * | c4 = 0, |
||
| World_Local * | c5 = 0, |
||
| World_Local * | c6 = 0, |
||
| World_Local * | c7 = 0 |
||
| ) |
std::cout<<"Nobiome\n";
| void World_Local::generateHeightMap | ( | const short int | c0 = 0, |
| const short int | c1 = 0, |
||
| const short int | c2 = 0, |
||
| const short int | c3 = 0, |
||
| const short int | c4 = 0, |
||
| const short int | c5 = 0, |
||
| const short int | c6 = 0, |
||
| const short int | c7 = 0, |
||
| const unsigned int | _seed = 0 |
||
| ) |
| bool World_Local::generateSubterranean | ( | ) |
| Vector< Character * > * World_Local::getAdjacentCharacters | ( | int | _x, |
| int | _y | ||
| ) |
| Tribe * World_Local::getDominantInfluence | ( | ) |
| int World_Local::getDominantInfluenceValue | ( | ) |
| HasXY * World_Local::getRandomNeighbor | ( | HasXY * | _source | ) |
| HasXY * World_Local::getRandomTile | ( | ) |
| Vector< HasXY * > * World_Local::getRandomWalk | ( | int | _nSteps | ) |
| std::string World_Local::getSaveData | ( | ) |
| std::string World_Local::getTerrainName | ( | ) |
| void World_Local::incrementTicks | ( | int | nTicks | ) |
| void World_Local::init | ( | const int | _globalX, |
| const int | _globalY, | ||
| const enumBiome | _biomeID, | ||
| const int | _seed = 0, |
||
| const int | _hasRiver = -1 |
||
| ) |
| bool World_Local::isBlockingView | ( | int | _x, |
| int | _y | ||
| ) |
| bool World_Local::isLand | ( | ) |
| bool World_Local::isSafe | ( | int | _x, |
| int | _y | ||
| ) |
| bool World_Local::isSafe | ( | HasXY * | xy | ) |
| bool World_Local::isSafe | ( | WorldObject * | _object | ) |
| bool World_Local::load | ( | ) |
| bool World_Local::moveDown | ( | WorldObject * | _object | ) |
| bool World_Local::moveDown | ( | Character * | _object | ) |
| bool World_Local::moveObject | ( | WorldObject * | _object, |
| int | newX, | ||
| int | newY | ||
| ) |
| bool World_Local::moveObject | ( | Character * | _object, |
| int | newX, | ||
| int | newY | ||
| ) |
| bool World_Local::moveObject | ( | WorldObject * | , |
| const enumDirection | direction | ||
| ) |
| bool World_Local::moveUp | ( | WorldObject * | _object | ) |
| bool World_Local::moveUp | ( | Character * | _object | ) |
|
inline |
| bool World_Local::put | ( | WorldObject * | _object, |
| int | _x, | ||
| int | _y, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Item * | _item, |
| int | _x, | ||
| int | _y, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Character * | _character, |
| int | _x, | ||
| int | _y, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Creature * | _creature, |
| int | _x, | ||
| int | _y, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | WorldObject * | _object, |
| HasXY * | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Item * | _object, |
| HasXY * | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Character * | _object, |
| HasXY * | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Creature * | _object, |
| HasXY * | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | WorldObject * | _object, |
| HasXY | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Item * | _object, |
| HasXY | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Character * | _object, |
| HasXY | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Creature * | _object, |
| HasXY | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Static * | _static, |
| int | _x, | ||
| int | _y, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Static * | _static, |
| HasXY | _xy, | ||
| bool | subterranean = false |
||
| ) |
| bool World_Local::put | ( | Static * | _static, |
| HasXY * | _xy, | ||
| bool | subterranean = false |
||
| ) |
| void World_Local::rayTrace | ( | int | _x1, |
| int | _y1, | ||
| int | _x2, | ||
| int | _y2, | ||
| Vector< HasXY *> * | vVisibleTiles, | ||
| const bool | subterranean = false |
||
| ) |
| Vector< HasXY * > * World_Local::rayTraceLOS | ( | int | _x, |
| int | _y, | ||
| const int | RANGE, | ||
| const bool | subterranean = false |
||
| ) |
| Vector< HasXY2< unsigned long int > * > * World_Local::rayTraceLOS | ( | long unsigned int | _x, |
| long unsigned int | _y, | ||
| const int | RANGE | ||
| ) |
| bool World_Local::remove | ( | WorldObject * | _object | ) |
| bool World_Local::remove | ( | Item * | _item | ) |
| bool World_Local::remove | ( | Character * | _character | ) |
| bool World_Local::remove | ( | Creature * | _creature | ) |
| void World_Local::removeInfluence | ( | Tribe * | tribe, |
| int | amount | ||
| ) |
| bool World_Local::save | ( | ) |
| Creature* World_Local::spawnCreature | ( | ) |
| void World_Local::unload | ( | ) |
| void World_Local::updateTickBacklog | ( | Calendar | _currentDate | ) |
| bool World_Local::wander | ( | WorldObject * | _object | ) |
| bool World_Local::wander | ( | Character * | _object | ) |
| bool World_Local::wander | ( | Creature * | _object | ) |
| AbstractData* World_Local::abstractData |
| unsigned long int World_Local::accessNumber |
| std::atomic<bool> World_Local::active |
| ArrayS2<int> World_Local::aFullHeight |
| ArrayS2<char> World_Local::aHeightDiff |
| enumBiome World_Local::baseBiome |
| short int World_Local::baseFertility |
| short int World_Local::baseMetal |
| World_Biome* World_Local::biome |
| short int World_Local::biomeID |
| bool World_Local::canMove |
| unsigned short int World_Local::centerHeight |
| Data* World_Local::data |
| Data_Subterranean* World_Local::dataSubterranean |
| short int World_Local::globalX |
| std::atomic<short int> World_Local::globalX_TS |
| short int World_Local::globalY |
| std::atomic<short int> World_Local::globalY_TS |
| bool World_Local::hasCave |
| short int World_Local::hasRiver |
| bool World_Local::hasRuin |
| std::atomic<bool> World_Local::initialized |
| short int World_Local::landID |
| Calendar World_Local::localDate |
| unsigned int World_Local::nFloraDifficult |
| unsigned int World_Local::nFloraGood |
| unsigned int World_Local::nFloraGrass |
| short int World_Local::nX |
| short int World_Local::nY |
| char World_Local::riverConnections |
| int World_Local::testValue |
| Texture World_Local::texFar |
| std::atomic<bool> World_Local::threadAccess |
| long long unsigned int World_Local::ticksBacklog |
| Vector<Character*> World_Local::vCharacter |
| Vector<Creature*> World_Local::vCreature |
| Vector<Item*> World_Local::vItem |
| Vector<WorldObject*> World_Local::vObjectGeneric |
1.8.13