WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Macros | Enumerations | Variables
Driver_Settings.cpp File Reference
#include <string>
#include <System/Thread/Mutex.hpp>
#include <System/Thread/Atomic.hpp>
#include <limits.h>
Include dependency graph for Driver_Settings.cpp:
This graph shows which files directly or indirectly include this file:

Macros

#define WORLDSIM_DRIVER_SETTINGS_CPP
 
#define WILDCAT_USE_OPENGL
 
#define AUTO_SET_CORES
 
#define SAVE_DATA
 
#define ABSOLUTE_COORDINATE_NULL   ULONG_MAX
 
#define PORTABLE_INT_MAX   32767
 
#define FAST_EXIT
 

Enumerations

enum  enumMenu {
  MENU_UNKNOWN, MENU_TITLE, MENU_OPTIONS, MENU_LOADGAME,
  MENU_WORLDGENERATOR, MENU_WORLDSIMULATOR, MENU_ADVENTUREMODE
}
 
enum  enumDirection { NORTH, EAST, SOUTH, WEST }
 
enum  enumRace { NONE =0, HUMAN =1, DWARVEN =2, ELVEN =3 }
 
enum  eLocalTerrain { eLocalTerrain::G =0, eLocalTerrain::GRASS =1, eLocalTerrain::WATER =2 }
 

Variables

const bool FAST_COUT = false
 
const bool RELINQUISH_CPU = true
 
const unsigned int RELINQUISH_CPU_TIMEOUT = 100
 
unsigned short int N_CORES = 1
 
const unsigned short int MAX_CORES = 4
 
std::string currentSavePath = ""
 
const std::string VERSION_NUMBER = "0.0.205indev"
 
const std::string THREAD_STATUS = "unthreaded"
 
const std::string VERSION = VERSION_NUMBER+" Lin32 "+THREAD_STATUS
 
const std::string G_WINDOW_TITLE = "WorldSim"
 
unsigned int RESOLUTIONX =1024
 
unsigned int RESOLUTIONY =900
 
const bool MAXIMISE_WINDOW = false
 
CharacterplayerCharacter = 0
 
IteminventoryGrid [10][10]
 
enumMenu activeMenu = MENU_WORLDGENERATOR
 
bool FOG_OF_WAR = true
 
bool QUICKSTART_GENERATOR = true
 
const bool QUICKSTART_SIMULATOR = false
 
const bool ENABLE_BACKGROUND_SIMULATION = false
 
int worldPop = 0
 
int lastline = 0
 
const int QUICKSTART_WORLD_SIZE = 129
 
long long int INITIAL_YEARS_SIMULATE = 0
 
const int DEFAULT_WORLD_SIZE_SLOT = 1
 
const int DEFAULT_NUMBER_TRIBES_DWARVEN = 0
 
const int DEFAULT_NUMBER_TRIBES_HUMAN = 6
 
const int DEFAULT_NUMBER_TRIBES_ELVEN = 0
 
const int DEFAULT_NUMBER_CIVS = 0
 
const int CALENDAR_INITIAL_HOUR = 8
 
const int CALENDAR_INITIAL_MINUTE = 0
 
const int CALENDAR_SECONDS_PER_MINUTE = 2
 
const int LOCAL_MAP_SIZE = 257
 
int TIME_SCALE = 10
 
const int MAX_VIEW_RANGE = 20
 
const int MAX_HUNGER = 1000
 
const int MAX_THIRST = 300
 
const bool OUTPUT_FRAMERATE = false
 
const int OUTPUT_FRAMERATE_SAMPLE_SIZE = 50
 
const bool LIMIT_FRAMERATE = false
 
const double FRAMERATE = 120
 
const double POLLSPERSECOND = 30
 
double LOGIC_PER_SECOND = 1
 
const double PHYSICS_PER_SECOND = 10
 
double ANIMATION_PER_SECOND = 10
 
int SLOW_FRAMERATE = 1000000/2
 
bool SLOW_FRAMERATE_ACTIVE = false
 
int UFRAMERATE = 1000000/FRAMERATE
 
const int UPOLLSPERSECOND = 1000000/POLLSPERSECOND
 
int U_LOGIC_PER_SECOND = 1000000/LOGIC_PER_SECOND
 
const int U_PHYSICS_PER_SECOND = 1000000/PHYSICS_PER_SECOND
 
const int UANIMATIONSPERSECOND = 1000000/ANIMATION_PER_SECOND
 
int CURRENT_ANIMATION_FRAME = 0
 
const bool DOUBLE_BUFFERING = false
 
const bool BUSY_WAIT = false
 
const int BUSY_WAIT_USEC = 2000
 
const bool LAZY_RENDERING =false
 
bool RENDER_NEXT_FRAME =true
 
const bool COMPRESS_TEXTURES = false
 
const int MAX_LOCAL_MAPS_IN_MEMORY = 3
 
const int MAX_LOCAL_MAPS_IN_BACKGROUND_MEMORY = 3
 
int DEBUG_X =-1
 
int DEBUG_Y =-1
 
bool RESET =false
 
bool HOTKEYS_ENABLED = true
 
bool CLEAN_SAVES_ON_EXIT = true
 
bool NO_BACKLOG =false
 
unsigned long int CACHE_ID =0
 
Mutex mutexCout
 
Mutex mutexCacheID
 
bool QUIT_FLAG = false
 
unsigned int MAP_CACHE_SIZE = 12
 
bool DONT_RENDER = false
 
bool LIMIT_LOGIC = true
 
bool FORCE_LOGIC_FRAME = false
 
bool PAUSE_LOGIC = false
 
bool EMULATE_2_BUTTON_MIDDLE_CLICK = true
 
const char THOUSANDS_DELIMITER = ','
 
const char DECIMAL_DELIMITER = '.'
 
std::string NYA
 
const std::string ADVENTURE_MODE_MANUAL = "Adventure mode manual. Click MAN again or press ESC to close it.\nWelcome to Adventure Mode. This manual will be used to explain some basic stuff you can do in the game.\n\nButtons:\nINV - Access inventory and equipment. (not currently implemented)\n SNK - Sneak. Your line of sight will increase and allow you to see around corners. However your movement speed will be halved. Sneaking will also reduce your visibility so that if you are next to fog (from the NPC's view), you can't be seen.\nSPT - Sprint (not implemented). You will travel twice as fast but will have low view distance.\n\nHotkeys:\nE - use equipped item. Click on a tile to use your item there. Use mousewheel to scroll through options. Left click to select an option. Right-click to exit menu.\nSPACE - Talk to adjacent NPC."
 

Macro Definition Documentation

◆ ABSOLUTE_COORDINATE_NULL

#define ABSOLUTE_COORDINATE_NULL   ULONG_MAX

◆ AUTO_SET_CORES

#define AUTO_SET_CORES

◆ FAST_EXIT

#define FAST_EXIT

◆ PORTABLE_INT_MAX

#define PORTABLE_INT_MAX   32767

◆ SAVE_DATA

#define SAVE_DATA

◆ WILDCAT_USE_OPENGL

#define WILDCAT_USE_OPENGL

◆ WORLDSIM_DRIVER_SETTINGS_CPP

#define WORLDSIM_DRIVER_SETTINGS_CPP

Enumeration Type Documentation

◆ eLocalTerrain

enum eLocalTerrain
strong
Enumerator
GRASS 
WATER 

◆ enumDirection

Enumerator
NORTH 
EAST 
SOUTH 
WEST 

◆ enumMenu

enum enumMenu
Enumerator
MENU_UNKNOWN 
MENU_TITLE 
MENU_OPTIONS 
MENU_LOADGAME 
MENU_WORLDGENERATOR 
MENU_WORLDSIMULATOR 
MENU_ADVENTUREMODE 

◆ enumRace

enum enumRace
Enumerator
NONE 
HUMAN 
DWARVEN 
ELVEN 

Variable Documentation

◆ activeMenu

◆ ADVENTURE_MODE_MANUAL

const std::string ADVENTURE_MODE_MANUAL = "Adventure mode manual. Click MAN again or press ESC to close it.\nWelcome to Adventure Mode. This manual will be used to explain some basic stuff you can do in the game.\n\nButtons:\nINV - Access inventory and equipment. (not currently implemented)\n SNK - Sneak. Your line of sight will increase and allow you to see around corners. However your movement speed will be halved. Sneaking will also reduce your visibility so that if you are next to fog (from the NPC's view), you can't be seen.\nSPT - Sprint (not implemented). You will travel twice as fast but will have low view distance.\n\nHotkeys:\nE - use equipped item. Click on a tile to use your item there. Use mousewheel to scroll through options. Left click to select an option. Right-click to exit menu.\nSPACE - Talk to adjacent NPC."

◆ ANIMATION_PER_SECOND

double ANIMATION_PER_SECOND = 10

◆ BUSY_WAIT

const bool BUSY_WAIT = false

◆ BUSY_WAIT_USEC

const int BUSY_WAIT_USEC = 2000

◆ CACHE_ID

unsigned long int CACHE_ID =0

◆ CALENDAR_INITIAL_HOUR

const int CALENDAR_INITIAL_HOUR = 8

◆ CALENDAR_INITIAL_MINUTE

const int CALENDAR_INITIAL_MINUTE = 0

◆ CALENDAR_SECONDS_PER_MINUTE

const int CALENDAR_SECONDS_PER_MINUTE = 2

◆ CLEAN_SAVES_ON_EXIT

bool CLEAN_SAVES_ON_EXIT = true

◆ COMPRESS_TEXTURES

const bool COMPRESS_TEXTURES = false

◆ CURRENT_ANIMATION_FRAME

int CURRENT_ANIMATION_FRAME = 0

◆ currentSavePath

std::string currentSavePath = ""

◆ DEBUG_X

int DEBUG_X =-1

◆ DEBUG_Y

int DEBUG_Y =-1

◆ DECIMAL_DELIMITER

const char DECIMAL_DELIMITER = '.'

◆ DEFAULT_NUMBER_CIVS

const int DEFAULT_NUMBER_CIVS = 0

◆ DEFAULT_NUMBER_TRIBES_DWARVEN

const int DEFAULT_NUMBER_TRIBES_DWARVEN = 0

◆ DEFAULT_NUMBER_TRIBES_ELVEN

const int DEFAULT_NUMBER_TRIBES_ELVEN = 0

◆ DEFAULT_NUMBER_TRIBES_HUMAN

const int DEFAULT_NUMBER_TRIBES_HUMAN = 6

◆ DEFAULT_WORLD_SIZE_SLOT

const int DEFAULT_WORLD_SIZE_SLOT = 1

◆ DONT_RENDER

bool DONT_RENDER = false

◆ DOUBLE_BUFFERING

const bool DOUBLE_BUFFERING = false

◆ EMULATE_2_BUTTON_MIDDLE_CLICK

bool EMULATE_2_BUTTON_MIDDLE_CLICK = true

◆ ENABLE_BACKGROUND_SIMULATION

const bool ENABLE_BACKGROUND_SIMULATION = false

◆ FAST_COUT

const bool FAST_COUT = false

◆ FOG_OF_WAR

bool FOG_OF_WAR = true

◆ FORCE_LOGIC_FRAME

bool FORCE_LOGIC_FRAME = false

◆ FRAMERATE

const double FRAMERATE = 120

◆ G_WINDOW_TITLE

const std::string G_WINDOW_TITLE = "WorldSim"

◆ HOTKEYS_ENABLED

bool HOTKEYS_ENABLED = true

◆ INITIAL_YEARS_SIMULATE

long long int INITIAL_YEARS_SIMULATE = 0

◆ inventoryGrid

Item* inventoryGrid[10][10]

◆ lastline

int lastline = 0

◆ LAZY_RENDERING

const bool LAZY_RENDERING =false

◆ LIMIT_FRAMERATE

const bool LIMIT_FRAMERATE = false

◆ LIMIT_LOGIC

bool LIMIT_LOGIC = true

◆ LOCAL_MAP_SIZE

const int LOCAL_MAP_SIZE = 257

◆ LOGIC_PER_SECOND

double LOGIC_PER_SECOND = 1

◆ MAP_CACHE_SIZE

unsigned int MAP_CACHE_SIZE = 12

◆ MAX_CORES

const unsigned short int MAX_CORES = 4

◆ MAX_HUNGER

const int MAX_HUNGER = 1000

◆ MAX_LOCAL_MAPS_IN_BACKGROUND_MEMORY

const int MAX_LOCAL_MAPS_IN_BACKGROUND_MEMORY = 3

◆ MAX_LOCAL_MAPS_IN_MEMORY

const int MAX_LOCAL_MAPS_IN_MEMORY = 3

◆ MAX_THIRST

const int MAX_THIRST = 300

◆ MAX_VIEW_RANGE

const int MAX_VIEW_RANGE = 20

◆ MAXIMISE_WINDOW

const bool MAXIMISE_WINDOW = false

◆ mutexCacheID

Mutex mutexCacheID

◆ mutexCout

Mutex mutexCout

◆ N_CORES

unsigned short int N_CORES = 1

◆ NO_BACKLOG

bool NO_BACKLOG =false

◆ NYA

std::string NYA

◆ OUTPUT_FRAMERATE

const bool OUTPUT_FRAMERATE = false

◆ OUTPUT_FRAMERATE_SAMPLE_SIZE

const int OUTPUT_FRAMERATE_SAMPLE_SIZE = 50

◆ PAUSE_LOGIC

bool PAUSE_LOGIC = false

◆ PHYSICS_PER_SECOND

const double PHYSICS_PER_SECOND = 10

◆ playerCharacter

Character* playerCharacter = 0

◆ POLLSPERSECOND

const double POLLSPERSECOND = 30

◆ QUICKSTART_GENERATOR

bool QUICKSTART_GENERATOR = true

◆ QUICKSTART_SIMULATOR

const bool QUICKSTART_SIMULATOR = false

◆ QUICKSTART_WORLD_SIZE

const int QUICKSTART_WORLD_SIZE = 129

◆ QUIT_FLAG

bool QUIT_FLAG = false

◆ RELINQUISH_CPU

const bool RELINQUISH_CPU = true

◆ RELINQUISH_CPU_TIMEOUT

const unsigned int RELINQUISH_CPU_TIMEOUT = 100

◆ RENDER_NEXT_FRAME

bool RENDER_NEXT_FRAME =true

◆ RESET

bool RESET =false

◆ RESOLUTIONX

unsigned int RESOLUTIONX =1024

◆ RESOLUTIONY

unsigned int RESOLUTIONY =900

◆ SLOW_FRAMERATE

int SLOW_FRAMERATE = 1000000/2

◆ SLOW_FRAMERATE_ACTIVE

bool SLOW_FRAMERATE_ACTIVE = false

◆ THOUSANDS_DELIMITER

const char THOUSANDS_DELIMITER = ','

◆ THREAD_STATUS

const std::string THREAD_STATUS = "unthreaded"

◆ TIME_SCALE

int TIME_SCALE = 10

◆ U_LOGIC_PER_SECOND

int U_LOGIC_PER_SECOND = 1000000/LOGIC_PER_SECOND

◆ U_PHYSICS_PER_SECOND

const int U_PHYSICS_PER_SECOND = 1000000/PHYSICS_PER_SECOND

◆ UANIMATIONSPERSECOND

const int UANIMATIONSPERSECOND = 1000000/ANIMATION_PER_SECOND

◆ UFRAMERATE

int UFRAMERATE = 1000000/FRAMERATE

◆ UPOLLSPERSECOND

const int UPOLLSPERSECOND = 1000000/POLLSPERSECOND

◆ VERSION

const std::string VERSION = VERSION_NUMBER+" Lin32 "+THREAD_STATUS

◆ VERSION_NUMBER

const std::string VERSION_NUMBER = "0.0.205indev"

◆ worldPop

int worldPop = 0