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

#include <Settlement.hpp>

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

Public Member Functions

 Settlement ()
 
void initSimulation ()
 
int getPopulation ()
 
CharactergetRandomCharacter ()
 
CharactergetCharacter (Vector< Character *> *vExclude)
 
bool has (enumLocation loc)
 
bool canBuild (enumLocation loc)
 
int getMiningCapacity ()
 
int getFarmingCapacity ()
 
World_BiomegetBiome ()
 
void printAllMoneyInSettlement ()
 
int getAllMoneyInSettlement ()
 
double getMoneyPercentInTreasury ()
 
double getAverageCharacterWealth ()
 
virtual void incrementTicks (int)
 
bool removeCharacter (Character *)
 
bool hasIdea (Idea)
 
bool isSpecialIdea (Idea idea)
 
void giveIdea (Idea)
 
void buildDwarvenFortress ()
 
virtual std::string getName () override
 
Texture * currentTexture () override
 
std::string getColumn (std::string _column) override
 
std::string getColumnType (std::string _column) override
 
- Public Member Functions inherited from WorldObjectGlobal
 WorldObjectGlobal ()
 
virtual std::string getExtendedInfo ()
 
int distanceTo (WorldObjectGlobal *_obj)
 
bool isOnMap (int _x, int _y)
 
virtual ~WorldObjectGlobal ()
 

Public Attributes

CivparentCiv
 
Vector< Character * > vCharacter
 
Vector< Character * > vDeceased
 
Vector< Item * > vItem
 
Vector< IdeavIdea
 
Government government
 
Stockpile stockpile
 
ItemRequestManager requestManager
 
LocationRequestManager locationRequestManager
 
Technology technology
 
LocationManager location
 
int colourRed
 
int colourGreen
 
int colourBlue
 
int dailyCounter
 
int monthlyCounter
 
int race
 
- Public Attributes inherited from WorldObjectGlobal
int worldX
 
int worldY
 
Worldworld
 
std::string name
 
std::string nameType
 
int type
 

Protected Attributes

RandomNonStatic random
 

Additional Inherited Members

- Public Types inherited from WorldObjectGlobal
enum  enumType {
  NOTYPE =0, URBAN =1, ARMY =2, FLEET =3,
  NOMADIC_TRIBE =4, TRIBAL_ARTIFACT =5
}
 

Constructor & Destructor Documentation

◆ Settlement()

Settlement::Settlement ( )

Member Function Documentation

◆ buildDwarvenFortress()

void Settlement::buildDwarvenFortress ( )

◆ canBuild()

bool Settlement::canBuild ( enumLocation  loc)

◆ currentTexture()

Texture * Settlement::currentTexture ( )
override

◆ getAllMoneyInSettlement()

int Settlement::getAllMoneyInSettlement ( )

◆ getAverageCharacterWealth()

double Settlement::getAverageCharacterWealth ( )

◆ getBiome()

World_Biome * Settlement::getBiome ( )

◆ getCharacter()

Character * Settlement::getCharacter ( Vector< Character *> *  vExclude)

◆ getColumn()

std::string Settlement::getColumn ( std::string  _column)
override

◆ getColumnType()

std::string Settlement::getColumnType ( std::string  _column)
override

◆ getFarmingCapacity()

int Settlement::getFarmingCapacity ( )

◆ getMiningCapacity()

int Settlement::getMiningCapacity ( )

◆ getMoneyPercentInTreasury()

double Settlement::getMoneyPercentInTreasury ( )

◆ getName()

std::string Settlement::getName ( )
overridevirtual

Reimplemented from WorldObjectGlobal.

◆ getPopulation()

int Settlement::getPopulation ( )

◆ getRandomCharacter()

Character * Settlement::getRandomCharacter ( )

◆ giveIdea()

void Settlement::giveIdea ( Idea  idea)

◆ has()

bool Settlement::has ( enumLocation  loc)

◆ hasIdea()

bool Settlement::hasIdea ( Idea  idea)

◆ incrementTicks()

void Settlement::incrementTicks ( int  )
virtual

Reimplemented in Settlement_Dwarven.

◆ initSimulation()

void Settlement::initSimulation ( )

◆ isSpecialIdea()

bool Settlement::isSpecialIdea ( Idea  idea)

◆ printAllMoneyInSettlement()

void Settlement::printAllMoneyInSettlement ( )

◆ removeCharacter()

bool Settlement::removeCharacter ( Character _character)

Member Data Documentation

◆ colourBlue

int Settlement::colourBlue

◆ colourGreen

int Settlement::colourGreen

◆ colourRed

int Settlement::colourRed

◆ dailyCounter

int Settlement::dailyCounter

◆ government

Government Settlement::government

◆ location

LocationManager Settlement::location

◆ locationRequestManager

LocationRequestManager Settlement::locationRequestManager

◆ monthlyCounter

int Settlement::monthlyCounter

◆ parentCiv

Civ* Settlement::parentCiv

◆ race

int Settlement::race

◆ random

RandomNonStatic Settlement::random
protected

◆ requestManager

ItemRequestManager Settlement::requestManager

◆ stockpile

Stockpile Settlement::stockpile

◆ technology

Technology Settlement::technology

◆ vCharacter

Vector<Character*> Settlement::vCharacter

◆ vDeceased

Vector<Character*> Settlement::vDeceased

◆ vIdea

Vector<Idea> Settlement::vIdea

◆ vItem

Vector<Item*> Settlement::vItem

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