WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <string>
#include <System/Thread/Mutex.hpp>
#include <System/Thread/Atomic.hpp>
#include "Driver_Settings_Enums.hpp"
#include <limits.h>
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 |
Variables | |
const bool | FAST_COUT = false |
const bool | RELINQUISH_CPU = true |
const unsigned int | RELINQUISH_CPU_TIMEOUT = 1 |
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 |
Character * | playerCharacter = 0 |
Item * | inventoryGrid [10][10] |
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 = 1 |
const int | DEFAULT_NUMBER_TRIBES_HUMAN = 1 |
const int | DEFAULT_NUMBER_TRIBES_ELVEN = 0 |
const int | DEFAULT_NUMBER_CIVS = 0 |
const int | STARTING_TRIBE_SIZE_HUMAN = 1 |
const int | STARTING_TRIBE_SIZE_DWARVEN = 20 |
const int | STARTING_TRIBE_SIZE_ELVEN = 1 |
const int | LOCAL_MAP_SIZE = 257 |
int | TIME_SCALE = 0 |
const int | SECONDS_PER_MINUTE = 1 |
const int | MINUTES_PER_HOUR = 60 |
const int | HOURS_PER_DAY = 24 |
const int | DAYS_PER_MONTH = 28 |
const int | MONTHS_PER_YEAR = 4 |
const int | DAYS_PER_YEAR = DAYS_PER_MONTH*MONTHS_PER_YEAR |
int | TICKS_PER_MINUTE = SECONDS_PER_MINUTE |
const int | TICKS_PER_HOUR = TICKS_PER_MINUTE*MINUTES_PER_HOUR |
const int | TICKS_PER_DAY = TICKS_PER_HOUR*HOURS_PER_DAY |
const int | TICKS_PER_MONTH = TICKS_PER_DAY*DAYS_PER_MONTH |
const int | TICKS_PER_YEAR = TICKS_PER_MONTH*MONTHS_PER_YEAR |
const int | CALENDAR_INITIAL_HOUR = 8 |
const int | CALENDAR_INITIAL_MINUTE = 0 |
const int | MAX_VIEW_RANGE = 20 |
const int | MAX_HUNGER = 1000 |
const int | MAX_THIRST = 300 |
const double | RESEARCH_SPEED_MODIFIER = 1000 |
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 = 20 |
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." |
#define ABSOLUTE_COORDINATE_NULL ULONG_MAX |
#define AUTO_SET_CORES |
#define FAST_EXIT |
#define PORTABLE_INT_MAX 32767 |
#define SAVE_DATA |
#define WILDCAT_USE_OPENGL |
#define WORLDSIM_DRIVER_SETTINGS_CPP |
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." |
double ANIMATION_PER_SECOND = 10 |
const bool BUSY_WAIT = false |
const int BUSY_WAIT_USEC = 2000 |
unsigned long int CACHE_ID =0 |
const int CALENDAR_INITIAL_HOUR = 8 |
const int CALENDAR_INITIAL_MINUTE = 0 |
bool CLEAN_SAVES_ON_EXIT = true |
const bool COMPRESS_TEXTURES = false |
int CURRENT_ANIMATION_FRAME = 0 |
std::string currentSavePath = "" |
const int DAYS_PER_MONTH = 28 |
const int DAYS_PER_YEAR = DAYS_PER_MONTH*MONTHS_PER_YEAR |
int DEBUG_X =-1 |
int DEBUG_Y =-1 |
const char DECIMAL_DELIMITER = '.' |
const int DEFAULT_NUMBER_CIVS = 0 |
const int DEFAULT_NUMBER_TRIBES_DWARVEN = 1 |
const int DEFAULT_NUMBER_TRIBES_ELVEN = 0 |
const int DEFAULT_NUMBER_TRIBES_HUMAN = 1 |
const int DEFAULT_WORLD_SIZE_SLOT = 1 |
bool DONT_RENDER = false |
const bool DOUBLE_BUFFERING = false |
bool EMULATE_2_BUTTON_MIDDLE_CLICK = true |
const bool ENABLE_BACKGROUND_SIMULATION = false |
const bool FAST_COUT = false |
bool FOG_OF_WAR = true |
bool FORCE_LOGIC_FRAME = false |
const double FRAMERATE = 120 |
const std::string G_WINDOW_TITLE = "WorldSim" |
bool HOTKEYS_ENABLED = true |
const int HOURS_PER_DAY = 24 |
long long int INITIAL_YEARS_SIMULATE = 0 |
Item* inventoryGrid[10][10] |
int lastline = 0 |
const bool LAZY_RENDERING =false |
const bool LIMIT_FRAMERATE = false |
bool LIMIT_LOGIC = true |
const int LOCAL_MAP_SIZE = 257 |
double LOGIC_PER_SECOND = 1 |
unsigned int MAP_CACHE_SIZE = 12 |
const unsigned short int MAX_CORES = 4 |
const int MAX_HUNGER = 1000 |
const int MAX_LOCAL_MAPS_IN_BACKGROUND_MEMORY = 3 |
const int MAX_LOCAL_MAPS_IN_MEMORY = 20 |
const int MAX_THIRST = 300 |
const int MAX_VIEW_RANGE = 20 |
const bool MAXIMISE_WINDOW = false |
const int MINUTES_PER_HOUR = 60 |
const int MONTHS_PER_YEAR = 4 |
Mutex mutexCacheID |
Mutex mutexCout |
unsigned short int N_CORES = 1 |
bool NO_BACKLOG =false |
std::string NYA |
const bool OUTPUT_FRAMERATE = false |
const int OUTPUT_FRAMERATE_SAMPLE_SIZE = 50 |
bool PAUSE_LOGIC = false |
const double PHYSICS_PER_SECOND = 10 |
Character* playerCharacter = 0 |
const double POLLSPERSECOND = 30 |
bool QUICKSTART_GENERATOR = true |
const bool QUICKSTART_SIMULATOR = false |
const int QUICKSTART_WORLD_SIZE = 129 |
bool QUIT_FLAG = false |
const bool RELINQUISH_CPU = true |
const unsigned int RELINQUISH_CPU_TIMEOUT = 1 |
bool RENDER_NEXT_FRAME =true |
const double RESEARCH_SPEED_MODIFIER = 1000 |
bool RESET =false |
unsigned int RESOLUTIONX =1024 |
unsigned int RESOLUTIONY =900 |
const int SECONDS_PER_MINUTE = 1 |
int SLOW_FRAMERATE = 1000000/2 |
bool SLOW_FRAMERATE_ACTIVE = false |
const int STARTING_TRIBE_SIZE_DWARVEN = 20 |
const int STARTING_TRIBE_SIZE_ELVEN = 1 |
const int STARTING_TRIBE_SIZE_HUMAN = 1 |
const char THOUSANDS_DELIMITER = ',' |
const std::string THREAD_STATUS = "unthreaded" |
const int TICKS_PER_DAY = TICKS_PER_HOUR*HOURS_PER_DAY |
const int TICKS_PER_HOUR = TICKS_PER_MINUTE*MINUTES_PER_HOUR |
int TICKS_PER_MINUTE = SECONDS_PER_MINUTE |
const int TICKS_PER_MONTH = TICKS_PER_DAY*DAYS_PER_MONTH |
const int TICKS_PER_YEAR = TICKS_PER_MONTH*MONTHS_PER_YEAR |
int TIME_SCALE = 0 |
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 UFRAMERATE = 1000000/FRAMERATE |
const int UPOLLSPERSECOND = 1000000/POLLSPERSECOND |
const std::string VERSION = VERSION_NUMBER+" Lin32 "+THREAD_STATUS |
const std::string VERSION_NUMBER = "0.0.205indev" |
int worldPop = 0 |