helapordo 1.4.12
|
#include "../../ringabuf/src/ringabuf.h"
#include "../../koliseo/src/koliseo.h"
#include "../palette.h"
Go to the source code of this file.
Data Structures | |
struct | HLPD_Key |
Holds info about a keybind for the game. More... | |
struct | HLPD_DirectionalKeys |
Holds a set of HLPD_Key to use for cardinal direction movement. More... | |
struct | GameOptions |
Holds options useful for user runtime preferences. More... | |
struct | Saveslot |
Holds arguments for a saveslot. More... | |
struct | Consumable |
Holds a certain qty of a consumableClass. More... | |
struct | Artifact |
Represents the entity initialised from a artifactClass. More... | |
struct | BaseStats |
Holds the base stats for a fighterClass. More... | |
struct | EnemyBaseStats |
Holds the base stats for a enemyClass. More... | |
struct | BossBaseStats |
Holds the base stats for a bossClass. More... | |
struct | countStats |
Holds the lifetime stats of the player. More... | |
struct | Specialslot |
Holds state for a Fighter specials. More... | |
struct | Skillslot |
Holds state for a skillType. More... | |
struct | Perk |
Represents the entity initialised from a perkClass. More... | |
struct | Fighter |
Represents the entity initialised from a fighterClass. More... | |
struct | Enemy |
Represents the entity initialised from a enemyClass. More... | |
struct | Boss |
Represents the entity initialised from a bossClass. More... | |
struct | Turncounter |
Represents the entity initialised from a CounterType. More... | |
struct | Wincon |
Defines the entity initialised from a winconClass. More... | |
struct | Path |
Holds the state of game progression. More... | |
struct | Equip |
Represents the entity initialised from a equipClass. More... | |
struct | Equipslot |
Represents the entity containing an Equip instance. More... | |
struct | Shop |
Represents a shop instance. More... | |
struct | Chest |
Represents the entity initialised from a chestClass. More... | |
struct | Treasure |
Represents the entity initialised from a treasureClass. More... | |
struct | Roadfork |
Represents the entity initialised from a roadforkClass. More... | |
struct | FoeParty |
Represents the entity initialised from a foePartyClass. More... | |
struct | FoePartyBaseStats |
Holds the base stats for a foePartyClass. More... | |
struct | Room |
Represents the entity initialised from a roomClass. More... | |
struct | Floor |
Represents the entity initialised from a floorClass. More... | |
struct | loadInfo |
Contains loaded values to pass to initRoom(). More... | |
struct | Gamestate |
Holds arguments for a game. More... | |
struct | turnOP_args |
Holds arguments for a turnOption_OP. More... | |
struct | Notification |
Holds text for a notification. More... | |
Macros | |
#define | HELAPORDO_OS "unknown" |
#define | HELAPORDO_MACHINE "unknown" |
#define | HLPD_KEYCLASS_MAX 8 |
Maximum index of HLPD_KeyClass, so that the size has to add 1 for the 0th index. | |
#define | HLPD_DIRECTIONALKEYS_SCHEMAS_MAX 2 |
Maximum index of HLPD_DirectionalKeys_Schema, so that the size has to add 1 for the 0th index. | |
#define | HLP_MAX_INDEX (HR_loadInfo-100+KLS_REGIONTYPE_MAX) |
Defines max index for an HLP_Region_Type value. | |
#define | HELAPORDO_MAJOR_VERSION 1 |
Current major release. | |
#define | HELAPORDO_MINOR_VERSION 4 |
Current minor release. | |
#define | HELAPORDO_PATCH_VERSION 12 |
Current patch release. | |
#define | VERSION "1.4.12" |
Current version string identifier, with MAJOR.MINOR.PATCH format. | |
#define | HELAPORDO_BINSAVEFILE_VERSION "0.0.6" |
#define | EXPECTED_NCURSES_VERSION_MAJOR 6 |
Defines min expected major ncurses version. | |
#define | EXPECTED_NCURSES_VERSION_MINOR 4 |
Defines min expected minor ncurses version. | |
#define | EXPECTED_NCURSES_VERSION_PATCH 20230520 |
Defines min expected patch ncurses version. | |
#define | EXPECTED_RAYLIB_VERSION_MAJOR 4 |
Defines min expected major ncurses version. | |
#define | EXPECTED_RAYLIB_VERSION_MINOR 5 |
Defines min expected minor ncurses version. | |
#define | EXPECTED_RAYLIB_VERSION_PATCH 0 |
Defines min expected patch ncurses version. | |
#define | MAX_SAVESLOTS 3 |
Total number of Saveslot for the game. | |
#define | MAXPLAYERLUCK 30 |
Ceiling for Fighter luck. | |
#define | MAXLENGTH 100 |
Ceiling for Path length. | |
#define | MAXLUCK 50 |
Ceiling for Path luck. | |
#define | GAMEMODE_MAX 0 |
Maximum index of Gamemode, so that the size has to add 1 for the 0th index. | |
#define | LORES_MAX 2 |
Maximum number of lores. | |
#define | CONSUMABLESMAX 5 |
Maximum index of consumableClass, so that the size has to add 1 for the 0th index. | |
#define | ARTIFACTSMAX 6 |
Maximum index of artifactClass, so that the size has to add 1 for the 0th index. | |
#define | ENEMY_ARTIFACTDROP_CHANCE 1001 |
Defines rare Artifact drop chance for normal enemies (e->beast == 0) | |
#define | STATUSMAX 5 |
Maximum index of fighterStatus, so that the size has to add 1 for the 0th index. | |
#define | CLASSESMAX 3 |
Maximum index of fighterClass, so that the size has to add 1 for the 0th index. | |
#define | STATMAX 3 |
Maximum index of Stat, so that the size has to add 1 for the 0th index. | |
#define | ENEMYCLASSESMAX 7 |
Maximum index of enemyClass, so that the size has to add 1 for the 0th index. | |
#define | BOSSCLASSESMAX 4 |
Maximum index of bossClass, so that the size has to add 1 for the 0th index. | |
#define | SPECIALSMAX 3 |
Maximum index of specialMove per class, so that the size for each Fighter has to add 1 for the 0th index. | |
#define | SKILLSTOTAL SKILL_TYPE_MAX |
#define | FIGHTER_SKILL_SLOTS SKILLSTOTAL |
#define | ENEMY_SKILL_SLOTS SKILLSTOTAL |
#define | BOSS_SKILL_SLOTS SKILLSTOTAL |
#define | COUNTERSMAX 9 |
Maximum index of counterIndexes, so that the size has to add 1 for the 0th index. | |
#define | EQUIPZONES 2 |
Maximum index of Equipzone, so that the size has to add 1 for the 0th index. | |
#define | EQUIPSBAGSIZE 20 |
#define | PERKSMAX 8 |
Maximum index of perkClass, so that the size has to add 1 for the 0th index. | |
#define | EQUIPPERKSMAX 2 |
Maximum number of Perk per Equip. | |
#define | ARRAY_SIZE(a) |
#define | FIGHTER_NAME_BUFSIZE 50 |
#define | WINCON_CLASS_MAX 2 |
Maximum index of winconClass, so that the size has to add 1 for the 0th index. | |
#define | PATH_SEED_BUFSIZE 20 |
#define | EQUIPSMAX 5 |
Maximum index of equipClass, so that the size has to add 1 for the 0th index. | |
#define | QUALITIESMAX 2 |
Maximum index of quality, so that the size has to add 1 for the 0th index. | |
#define | ITEM_SHOP_MAX 20 |
Maximum number of total items sold in a shop. | |
#define | EQUIP_SHOP_MAX 2 |
Maximum number of equips sold in a shop. | |
#define | CONSUMABLE_SHOP_MAX 3 |
Maximum number of total consumables sold in a shop. | |
#define | SINGLE_CONSUMABLE_SHOP_MAX 3 |
Maximum number of single consumables sold in a shop. | |
#define | CHEST_CLASS_MAX 1 |
Maximum index of chestClass, so that the size has to add 1 for the 0th index. | |
#define | CHEST_CONSUMABLES_MAX 5 |
Maximum number of Consumable held in a chest. | |
#define | CHEST_EQUIPS_MAX 5 |
Maximum number of Equip held in a chest. | |
#define | TREASURE_CLASS_MAX 3 |
Maximum index of treasureClass, so that the size has to add 1 for the 0th index. | |
#define | ROADFORK_OPTIONS_MAX 4 |
Maximum index of roadforkOption, so that the size has to add 1 for the 0th index. | |
#define | ROOM_CLASS_MAX 7 |
Maximum index of roomClass, so that the size has to add 1 for the 0th index. | |
#define | ROOM_ENEMIES_MAX 4 |
Maximum number of enemies in a room. | |
#define | FOES_BOSSES_MAX 2 |
Maximum number of bosses when in a FoeParty. | |
#define | FOEPARTY_CLASS_MAX 1 |
Maximum index of foePartyClass, so that the size has to add 1 for the 0th index. | |
#define | FLOOR_CLASS_MAX 1 |
Maximum index of floorClass, so that the size has to add 1 for the 0th index. | |
#define | FLOOR_MAX_COLS 24 |
Maximum value of cells in a Floor matrix column. | |
#define | FLOOR_MAX_ROWS 24 |
Maximum value of cells in a Floor matrix row. | |
#define | MAX_ROGUE_FLOORS 17 |
Maximum number of floors to beat in Rogue mode. | |
#define | SAVETYPE_MAX 2 |
Maximum value of saveType values. | |
#define | TURNOP_MAX 17 |
Maximum value for turnOption_OP. | |
#define | FOETURNOP_MAX 3 |
Maximum value for foeTurnOption_OP. | |
#define | OPS_LOGFILE "OPS_log.txt" |
Filename for OPS log. | |
#define | OP_RES_MAX 10 |
Maximum value of OP_res values. | |
#define | SHOPROOM 4 |
Ratio of shop rooms. | |
#define | BOSSROOM 5 |
Ratio of boss rooms. | |
#define | HOMEROOM 6 |
Ratio of home rooms. | |
#define | BEASTROOM 3 |
Ratio of beast rooms to normal ones. | |
#define | BSTFACTOR 1.5 |
Factor for stat boost to beast enemies. | |
#define | ENEMYLVLRATIO 2 |
Ratio of Fighter levels to Enemy levels. | |
#define | SPECIALLVLRATIO 2 |
Ratio of Fighter levels to unlock a new special move. | |
#define | EQUIPLVLBOOSTRATIO 3 |
Ratio of Fighter levels to Equip levels. | |
#define | FIGHT_RES_TOT 7 |
Total number of defined fightResult values. | |
#define | CHEST_FRAMES 25 |
Defines the number of frames for the chest animation. | |
#define | CHEST_ROWS 18 |
Defines the number of rows for the chest animation. | |
#define | CHEST_COLS 18 |
Defines the number of cols for the chest animation. | |
#define | CHEST_FRAMETIME 67 |
Defines for how many millisecs a sprite should stay on screen for the chest animation. | |
#define | CURSES_BINSAVE_NAME "save-nc.bin" |
Defines file name used for saveheader binary save. | |
#define | RL_BINSAVE_NAME "save-rl.bin" |
Defines file name used for saveheader binary save. | |
#define | CURSES_GMSTSAVE_NAME "run-nc.bin" |
Defines file name used for gamestate binary save. | |
#define | RL_GMSTSAVE_NAME "run-rl.bin" |
Defines file name used for gamestate binary save. | |
#define | CURSES_SETTINGS_SAVE_NAME "settings-nc.bin" |
Defines file name used for game options binary save. | |
#define | RL_SETTINGS_SAVE_NAME "settings-rl.bin" |
Defines file name used for game options binary save. | |
#define | NOTIFICATION_BUFFER_SIZE 200 |
Defines message buffer size for Notification. | |
#define | NOTIFICATIONS_RINGBUFFER_SIZE 7 |
Defines the size for notifications ringbuffer. | |
Typedefs | |
typedef enum HLPD_KeyClass | HLPD_KeyClass |
The different kinds of HLPD_Key. | |
typedef struct HLPD_Key | HLPD_Key |
Holds info about a keybind for the game. | |
typedef enum HLPD_DirectionalKeys_Schema | HLPD_DirectionalKeys_Schema |
The different kinds of schemas available for directional keys. | |
typedef struct HLPD_DirectionalKeys | HLPD_DirectionalKeys |
Holds a set of HLPD_Key to use for cardinal direction movement. | |
typedef struct GameOptions | GameOptions |
Holds options useful for user runtime preferences. | |
typedef enum HLP_Region_Type | HLP_Region_Type |
Defines indexes for all types that are allocated with Koliseo. | |
typedef struct Artifact | Artifact |
Represents the entity initialised from a artifactClass. | |
typedef struct BaseStats | BaseStats |
Holds the base stats for a fighterClass. | |
typedef struct EnemyBaseStats | EnemyBaseStats |
Holds the base stats for a enemyClass. | |
typedef struct BossBaseStats | BossBaseStats |
Holds the base stats for a bossClass. | |
typedef void(* | callback_turncounter_fighter_t) (struct Fighter *) |
Defines a function pointer returning void and taking a Fighter pointer. | |
typedef void(* | callback_turncounter_enemy_t) (struct Enemy *) |
Defines a function pointer returning void and taking a Enemy pointer. | |
typedef void(* | callback_artifact_t) (struct Fighter *, struct Enemy *, struct Boss *, int isBoss) |
Defines a function pointer returning void and taking a WINDOW, a Fighter, a Enemy, a Boss and a Path pointers, along with three ints. | |
typedef void(* | callback_void_t) (void) |
Defines a function pointer returning void and taking NO parameters (different than saying just (), unspecified parameters). | |
typedef struct Fighter | Fighter |
Represents the entity initialised from a fighterClass. | |
typedef struct Enemy | Enemy |
Represents the entity initialised from a enemyClass. | |
typedef struct Boss | Boss |
Represents the entity initialised from a bossClass. | |
typedef void(* | effect_fun) (Fighter *) |
Defines a function pointer returning void and taking a Fighter pointer. | |
typedef void(* | effect_e_fun) (Enemy *) |
Defines a function pointer returning void and taking a Enemy pointer. | |
typedef void(* | effect_b_fun) (Boss *) |
Defines a function pointer returning void and taking a Boss pointer. | |
typedef void(* | effect_fp_fun) (struct FoeParty *) |
Defines a function pointer returning void and taking a FoeParty pointer. | |
typedef void(* | boost_fun) (Fighter *, int boost) |
Defines a function pointer returning void and taking a Fighter pointer and an integer. | |
typedef void(* | boost_e_fun) (Enemy *, int boost) |
Defines a function pointer returning void and taking a Enemy pointer and an integer. | |
typedef void(* | boost_b_fun) (Boss *, int boost) |
Defines a function pointer returning void and taking a Boss pointer and an integer. | |
typedef void(* | boost_fp_fun) (struct FoeParty *, int boost) |
Defines a function pointer returning void and taking a FoeParty pointer and an integer. | |
typedef struct Turncounter | Turncounter |
Represents the entity initialised from a CounterType. | |
typedef struct Wincon | Wincon |
Defines the entity initialised from a winconClass. | |
typedef struct Path | Path |
Holds the state of game progression. | |
typedef struct Equip | Equip |
Represents the entity initialised from a equipClass. | |
typedef void(* | equip_fun) (Fighter *, Enemy *) |
Defines a function pointer returning void and taking a Fighter and a Enemy pointers. | |
typedef struct Equipslot | Equipslot |
Represents the entity containing an Equip instance. | |
typedef struct Shop | Shop |
Represents a shop instance. | |
typedef struct Chest | Chest |
Represents the entity initialised from a chestClass. | |
typedef struct Treasure | Treasure |
Represents the entity initialised from a treasureClass. | |
typedef struct Roadfork | Roadfork |
Represents the entity initialised from a roadforkClass. | |
typedef struct FoeParty | FoeParty |
Represents the entity initialised from a foePartyClass. | |
typedef struct FoePartyBaseStats | FoePartyBaseStats |
Holds the base stats for a foePartyClass. | |
typedef struct Room | Room |
Represents the entity initialised from a roomClass. | |
typedef struct Floor | Floor |
Represents the entity initialised from a floorClass. | |
typedef enum saveType | saveType |
The different kinds of saveType. | |
typedef struct loadInfo | loadInfo |
Contains loaded values to pass to initRoom(). | |
typedef enum turnOption | turnOption |
The different kinds of turnOption. | |
typedef enum turnOption_OP | turnOption_OP |
The different kinds of turnOption_OP. | |
typedef enum foeTurnOption | foeTurnOption |
The different kinds of foeTurnOption. | |
typedef enum foeTurnOption_OP | foeTurnOption_OP |
The different kinds of foeTurnOption_OP. | |
typedef enum OP_res | OP_res |
The different kinds of OP_res. | |
typedef struct Notification | Notification |
Holds text for a notification. | |
Functions | |
turnOption_OP | turnOP_from_turnOption (turnOption t) |
Returns a turnOption_OP from a turnOption. | |
foeTurnOption_OP | foeTurnOP_from_foeTurnOption (foeTurnOption ft) |
Returns a foeTurnOption_OP from a foeTurnOption. | |
OP_res | OP_res_from_fightResult (fightResult fr) |
Returns a OP_res from a fightResult fr. | |
Variables | |
const char * | helapordo_title_string |
We need to undef these macros if they exist, since windows.h may declare them (and here we inherit that from koliseo.h). | |
const char * | helapordo_build_string |
char * | hlpd_keyclass_strings [HLPD_KEYCLASS_MAX+1] |
Array with the name strings for Gamemode. | |
HLPD_Key | hlpd_default_keybinds [HLPD_KEYCLASS_MAX+1] |
Array with the keybinds for the game. | |
char * | hlpd_directionalkeyschemas_strings [HLPD_DIRECTIONALKEYS_SCHEMAS_MAX+1] |
Array with the name strings for HLPD_DirectionalKeys_Schema. | |
HLPD_DirectionalKeys | hlpd_default_directional_keys [HLPD_DIRECTIONALKEYS_SCHEMAS_MAX+1] |
Array with the default directional keys for all schemas defined as HLPD_DirectionalKeys_Schema. | |
const GameOptions | default_GameOptions |
char * | hlp_regiontype_strings [HLP_MAX_INDEX+1] |
Array with the name strings for HLP_Region_Type values. | |
Koliseo * | default_kls |
Global variable for default Koliseo. | |
Koliseo * | temporary_kls |
Global variable for temporary Koliseo. | |
Koliseo * | support_kls |
Global variable for support Koliseo. | |
int | G_PRELOAD_ANIMATIONS_ON |
TODO Remove mentions of this. | |
int | G_DEBUG_ON |
Global variable for debug flag. | |
int | G_LOG_ON |
Global variable for debug logging flag. | |
int | G_EXPERIMENTAL_ON |
Global variable for experimental features flag. | |
int | G_FASTQUIT_ON |
Global variable for fast quit flag. | |
int | G_GODMODE_ON |
Global variable for godmode flag. | |
int | G_DEBUG_ROOMTYPE |
Global variable for debug roomtype flag. | |
int | G_DEBUG_ROOMTYPE_ON |
Global variable for debug room flag. | |
char * | G_DEBUG_ROOMTYPE_ARG |
Global variable for debug room flag, set to the passed string argument. | |
int | G_DEBUG_ENEMYTYPE |
Global variable for debug enemy in ENEMIES roomtype flag. | |
int | G_DEBUG_ENEMYTYPE_ON |
Global variable for debug enemy flag. | |
char * | G_DEBUG_ENEMYTYPE_ARG |
Global variable for debug enemy flag, set to the passed string argument. | |
int | GS_AUTOSAVE_ON |
Global variable for autosave setting. | |
int | G_DOTUTORIAL_ON |
Global variable for a tutorial launch. | |
int | G_USE_CURRENTDIR |
Global variable for using current directory to store game run files. | |
int | G_USE_DEFAULT_BACKGROUND |
Global variable for using terminal default color. | |
int | G_USE_VIM_DIRECTIONAL_KEYS |
Global variable for using vim-like directional keys. | |
int | G_USE_WASD_DIRECTIONAL_KEYS |
Global variable for using WASD directional keys. | |
int64_t | G_RNG_ADVANCEMENTS |
Global variable used to count advancements of the rng. | |
int | G_SEEDED_RUN_ON |
Global variable for seeded run flag. | |
char * | G_SEEDED_RUN_ARG |
Global variable for seeded run flag, set to the passed string argument. | |
Saveslot | default_saveslots [MAX_SAVESLOTS+1] |
Array with the default saveslots for a game. | |
char * | gamemodenamestrings [GAMEMODE_MAX+1] |
Array with the name strings for Gamemode. | |
Gamemode | GAMEMODE |
Global variable for gamemode flag. | |
char * | consumablestrings [CONSUMABLESMAX+1] |
Array with the name strings for Consumable. | |
Consumable | consumablesBase [CONSUMABLESMAX+1] |
Array containing all Consumable instances. | |
char * | artifactstrings [ARTIFACTSMAX+1] |
Array with the name strings for artifactClass. | |
Artifact | artifactsBase [ARTIFACTSMAX+1] |
Array with all the Artifact found. | |
char * | classesstrings [CLASSESMAX+1] |
Array with the name strings for fighterClass. | |
BaseStats | basestats [CLASSESMAX+1] |
Array containing all BaseStats instances. | |
char * | classenemystrings [ENEMYCLASSESMAX+1] |
Array with the name strings for enemyClass. | |
EnemyBaseStats | baseenemystats [ENEMYCLASSESMAX+1] |
Array containing all EnemyBaseStats instances. | |
char * | classbossstrings [BOSSCLASSESMAX+1] |
Array with the name strings for bossClass. | |
BossBaseStats | basebossstats [BOSSCLASSESMAX+1] |
Array containing all BossBaseStats instances. | |
char * | specialsnamestrings [CLASSESMAX+1][SPECIALSMAX+1] |
Array with the name strings for special moves. | |
char * | specialsdescstrings [CLASSESMAX+1][SPECIALSMAX+1] |
Array with the desc strings for special moves. | |
int | specialscosts [CLASSESMAX+1][SPECIALSMAX+1] |
Array with the cost integer values for special moves. | |
char * | skillsnamestrings [SKILLSTOTAL+1] |
Array with the name strings for skills. | |
char * | skillsdescstrings [SKILLSTOTAL+1] |
Array with the desc strings for skills. | |
int | skillscosts [SKILLSTOTAL+1] |
Array with the cost integer values for skills. | |
char * | equipzonestrings [EQUIPZONES+1] |
Array with the name strings for equip zones. | |
char * | perksnamestrings [PERKSMAX+1] |
Array with the name strings for perkClass. | |
char * | perksdescstrings [PERKSMAX+1] |
Array with the desc strings for perkClass. | |
char * | winconstrings [WINCON_CLASS_MAX+1] |
Array with the desc strings for winconClass. | |
char * | qualitytrings [QUALITIESMAX+1] |
Array with the name strings for quality. | |
char * | equipstrings [EQUIPSMAX+1] |
Array with the name strings for equipClass. | |
Equip | equips [EQUIPSMAX+1] |
Array containing all Equip instances. | |
char * | chestdescstrings [CHEST_CLASS_MAX+1] |
Array with the desc strings for chestClass. | |
char * | treasuredescstrings [TREASURE_CLASS_MAX+1] |
Array with the name strings for treasureClass. | |
char * | roadforkoptionstrings [ROADFORK_OPTIONS_MAX+1] |
Array with the name strings for roadforkClass. | |
char * | roomnamestrings [ROOM_CLASS_MAX+1] |
Array with the name strings for roomClass. | |
char * | foepartystrings [FOEPARTY_CLASS_MAX+1] |
Array with the name strings for foePartyClass. | |
FoePartyBaseStats | basefoepartystats [FOEPARTY_CLASS_MAX+1] |
Array containing all FoePartyBaseStats instances. | |
char * | floornamestrings [FLOOR_CLASS_MAX+1] |
Array with the name strings for floorClass. | |
char * | savetypestrings [SAVETYPE_MAX+1] |
Array with the name strings for saveType. | |
Gamestate * | G_GAMESTATE |
Global variable used to store Gamestate address when KLS_Region is not available. | |
char * | turnopstrings [TURNOP_MAX+1] |
Array with the name strings for turnOption. | |
char * | foeturnopstrings [FOETURNOP_MAX+1] |
Array with the name strings for foeTurnOption. | |
char * | opresstrings [OP_RES_MAX+1] |
Array with the name strings for OP_res. | |
char * | fightresultstrings [FIGHT_RES_TOT+1] |
Array with the name strings for fightResult. | |
const wchar_t | HEAD_CHAR_ICON |
const wchar_t | TORSO_CHAR_ICON |
const wchar_t | LEGS_CHAR_ICON |
#define ARRAY_SIZE | ( | a | ) |
#define ARTIFACTSMAX 6 |
Maximum index of artifactClass, so that the size has to add 1 for the 0th index.
#define BEASTROOM 3 |
#define BOSS_SKILL_SLOTS SKILLSTOTAL |
#define BOSSCLASSESMAX 4 |
Maximum index of bossClass, so that the size has to add 1 for the 0th index.
#define BOSSROOM 5 |
#define BSTFACTOR 1.5 |
Factor for stat boost to beast enemies.
#define CHEST_CLASS_MAX 1 |
Maximum index of chestClass, so that the size has to add 1 for the 0th index.
#define CHEST_COLS 18 |
Defines the number of cols for the chest animation.
#define CHEST_CONSUMABLES_MAX 5 |
Maximum number of Consumable held in a chest.
#define CHEST_FRAMES 25 |
Defines the number of frames for the chest animation.
#define CHEST_FRAMETIME 67 |
Defines for how many millisecs a sprite should stay on screen for the chest animation.
#define CHEST_ROWS 18 |
Defines the number of rows for the chest animation.
#define CLASSESMAX 3 |
Maximum index of fighterClass, so that the size has to add 1 for the 0th index.
#define CONSUMABLE_SHOP_MAX 3 |
Maximum number of total consumables sold in a shop.
#define CONSUMABLESMAX 5 |
Maximum index of consumableClass, so that the size has to add 1 for the 0th index.
#define COUNTERSMAX 9 |
Maximum index of counterIndexes, so that the size has to add 1 for the 0th index.
#define CURSES_BINSAVE_NAME "save-nc.bin" |
Defines file name used for saveheader binary save.
#define CURSES_GMSTSAVE_NAME "run-nc.bin" |
Defines file name used for gamestate binary save.
#define CURSES_SETTINGS_SAVE_NAME "settings-nc.bin" |
Defines file name used for game options binary save.
#define ENEMY_ARTIFACTDROP_CHANCE 1001 |
Defines rare Artifact drop chance for normal enemies (e->beast == 0)
#define ENEMY_SKILL_SLOTS SKILLSTOTAL |
#define ENEMYCLASSESMAX 7 |
Maximum index of enemyClass, so that the size has to add 1 for the 0th index.
#define ENEMYLVLRATIO 2 |
Ratio of Fighter levels to Enemy levels.
Every Xth level up will apply to enemies.
#define EQUIP_SHOP_MAX 2 |
Maximum number of equips sold in a shop.
#define EQUIPLVLBOOSTRATIO 3 |
Ratio of Fighter levels to Equip levels.
Every Xth level up will apply to equips.
#define EQUIPSBAGSIZE 20 |
#define EQUIPSMAX 5 |
Maximum index of equipClass, so that the size has to add 1 for the 0th index.
#define EQUIPZONES 2 |
Maximum index of Equipzone, so that the size has to add 1 for the 0th index.
#define EXPECTED_NCURSES_VERSION_MAJOR 6 |
Defines min expected major ncurses version.
#define EXPECTED_NCURSES_VERSION_MINOR 4 |
Defines min expected minor ncurses version.
#define EXPECTED_NCURSES_VERSION_PATCH 20230520 |
Defines min expected patch ncurses version.
#define EXPECTED_RAYLIB_VERSION_MAJOR 4 |
Defines min expected major ncurses version.
#define EXPECTED_RAYLIB_VERSION_MINOR 5 |
Defines min expected minor ncurses version.
#define EXPECTED_RAYLIB_VERSION_PATCH 0 |
Defines min expected patch ncurses version.
#define FIGHT_RES_TOT 7 |
Total number of defined fightResult values.
#define FIGHTER_NAME_BUFSIZE 50 |
#define FIGHTER_SKILL_SLOTS SKILLSTOTAL |
#define FLOOR_CLASS_MAX 1 |
Maximum index of floorClass, so that the size has to add 1 for the 0th index.
#define FOEPARTY_CLASS_MAX 1 |
Maximum index of foePartyClass, so that the size has to add 1 for the 0th index.
#define FOES_BOSSES_MAX 2 |
Maximum number of bosses when in a FoeParty.
Can be confusing to name it ROOM_BOSSES_MAX since a Room only has one boss pointer.
#define FOETURNOP_MAX 3 |
Maximum value for foeTurnOption_OP.
At runtime, not all of them are valid options.
#define GAMEMODE_MAX 0 |
Maximum index of Gamemode, so that the size has to add 1 for the 0th index.
#define HELAPORDO_BINSAVEFILE_VERSION "0.0.6" |
#define HELAPORDO_MACHINE "unknown" |
#define HELAPORDO_MAJOR_VERSION 1 |
Current major release.
#define HELAPORDO_MINOR_VERSION 4 |
Current minor release.
#define HELAPORDO_OS "unknown" |
#define HELAPORDO_PATCH_VERSION 12 |
Current patch release.
#define HLP_MAX_INDEX (HR_loadInfo-100+KLS_REGIONTYPE_MAX) |
Defines max index for an HLP_Region_Type value.
#define HLPD_DIRECTIONALKEYS_SCHEMAS_MAX 2 |
Maximum index of HLPD_DirectionalKeys_Schema, so that the size has to add 1 for the 0th index.
#define HLPD_KEYCLASS_MAX 8 |
Maximum index of HLPD_KeyClass, so that the size has to add 1 for the 0th index.
#define HOMEROOM 6 |
#define ITEM_SHOP_MAX 20 |
Maximum number of total items sold in a shop.
Must be at least equal to CONSUMABLE_SHOP_MAX + EQUIP_SHOP_MAX.
#define LORES_MAX 2 |
Maximum number of lores.
#define MAX_ROGUE_FLOORS 17 |
Maximum number of floors to beat in Rogue mode.
#define NOTIFICATION_BUFFER_SIZE 200 |
Defines message buffer size for Notification.
#define NOTIFICATIONS_RINGBUFFER_SIZE 7 |
Defines the size for notifications ringbuffer.
#define OPS_LOGFILE "OPS_log.txt" |
Filename for OPS log.
#define PATH_SEED_BUFSIZE 20 |
#define PERKSMAX 8 |
Maximum index of perkClass, so that the size has to add 1 for the 0th index.
#define QUALITIESMAX 2 |
Maximum index of quality, so that the size has to add 1 for the 0th index.
#define RL_BINSAVE_NAME "save-rl.bin" |
Defines file name used for saveheader binary save.
#define RL_GMSTSAVE_NAME "run-rl.bin" |
Defines file name used for gamestate binary save.
#define RL_SETTINGS_SAVE_NAME "settings-rl.bin" |
Defines file name used for game options binary save.
#define ROADFORK_OPTIONS_MAX 4 |
Maximum index of roadforkOption, so that the size has to add 1 for the 0th index.
#define ROOM_CLASS_MAX 7 |
Maximum index of roomClass, so that the size has to add 1 for the 0th index.
#define ROOM_ENEMIES_MAX 4 |
Maximum number of enemies in a room.
#define SAVETYPE_MAX 2 |
Maximum value of saveType values.
#define SHOPROOM 4 |
#define SINGLE_CONSUMABLE_SHOP_MAX 3 |
Maximum number of single consumables sold in a shop.
#define SKILLSTOTAL SKILL_TYPE_MAX |
#define SPECIALLVLRATIO 2 |
Ratio of Fighter levels to unlock a new special move.
Every Xth level up will unlock one.
#define SPECIALSMAX 3 |
Maximum index of specialMove per class, so that the size for each Fighter has to add 1 for the 0th index.
#define STATMAX 3 |
Maximum index of Stat, so that the size has to add 1 for the 0th index.
#define STATUSMAX 5 |
Maximum index of fighterStatus, so that the size has to add 1 for the 0th index.
#define TREASURE_CLASS_MAX 3 |
Maximum index of treasureClass, so that the size has to add 1 for the 0th index.
#define TURNOP_MAX 17 |
Maximum value for turnOption_OP.
At runtime, not all of them are valid options.
#define VERSION "1.4.12" |
Current version string identifier, with MAJOR.MINOR.PATCH format.
#define WINCON_CLASS_MAX 2 |
Maximum index of winconClass, so that the size has to add 1 for the 0th index.
typedef struct Artifact Artifact |
Represents the entity initialised from a artifactClass.
typedef struct BaseStats BaseStats |
Holds the base stats for a fighterClass.
typedef void(* boost_b_fun) (Boss *, int boost) |
Defines a function pointer returning void and taking a Boss pointer and an integer.
typedef void(* boost_e_fun) (Enemy *, int boost) |
Defines a function pointer returning void and taking a Enemy pointer and an integer.
typedef void(* boost_fp_fun) (struct FoeParty *, int boost) |
Defines a function pointer returning void and taking a FoeParty pointer and an integer.
typedef void(* boost_fun) (Fighter *, int boost) |
Defines a function pointer returning void and taking a Fighter pointer and an integer.
typedef struct Boss Boss |
Represents the entity initialised from a bossClass.
typedef struct BossBaseStats BossBaseStats |
Holds the base stats for a bossClass.
typedef void(* callback_turncounter_enemy_t) (struct Enemy *) |
Defines a function pointer returning void and taking a Enemy pointer.
typedef void(* callback_turncounter_fighter_t) (struct Fighter *) |
Defines a function pointer returning void and taking a Fighter pointer.
typedef void(* callback_void_t) (void) |
Defines a function pointer returning void and taking NO parameters (different than saying just (), unspecified parameters).
typedef struct Chest Chest |
Represents the entity initialised from a chestClass.
typedef void(* effect_b_fun) (Boss *) |
Defines a function pointer returning void and taking a Boss pointer.
typedef void(* effect_e_fun) (Enemy *) |
Defines a function pointer returning void and taking a Enemy pointer.
typedef void(* effect_fp_fun) (struct FoeParty *) |
Defines a function pointer returning void and taking a FoeParty pointer.
typedef void(* effect_fun) (Fighter *) |
Defines a function pointer returning void and taking a Fighter pointer.
typedef struct Enemy Enemy |
Represents the entity initialised from a enemyClass.
typedef struct EnemyBaseStats EnemyBaseStats |
Holds the base stats for a enemyClass.
typedef struct Equip Equip |
Represents the entity initialised from a equipClass.
Defines a function pointer returning void and taking a Fighter and a Enemy pointers.
typedef struct Equipslot Equipslot |
typedef struct Fighter Fighter |
Represents the entity initialised from a fighterClass.
typedef struct Floor Floor |
Represents the entity initialised from a floorClass.
typedef struct FoeParty FoeParty |
Represents the entity initialised from a foePartyClass.
typedef struct FoePartyBaseStats FoePartyBaseStats |
Holds the base stats for a foePartyClass.
typedef enum foeTurnOption foeTurnOption |
The different kinds of foeTurnOption.
typedef enum foeTurnOption_OP foeTurnOption_OP |
The different kinds of foeTurnOption_OP.
typedef struct GameOptions GameOptions |
Holds options useful for user runtime preferences.
typedef enum HLP_Region_Type HLP_Region_Type |
Defines indexes for all types that are allocated with Koliseo.
typedef struct HLPD_DirectionalKeys HLPD_DirectionalKeys |
typedef enum HLPD_DirectionalKeys_Schema HLPD_DirectionalKeys_Schema |
The different kinds of schemas available for directional keys.
Ordering is directly related to hlpd_directionalkeyschema_strings.
typedef struct HLPD_Key HLPD_Key |
Holds info about a keybind for the game.
typedef enum HLPD_KeyClass HLPD_KeyClass |
The different kinds of HLPD_Key.
Ordering is directly related to hlpd_keyclass_strings.
typedef struct loadInfo loadInfo |
Contains loaded values to pass to initRoom().
typedef struct Notification Notification |
Holds text for a notification.
typedef struct Roadfork Roadfork |
typedef struct Room Room |
typedef struct Shop Shop |
Represents a shop instance.
typedef struct Treasure Treasure |
Represents the entity initialised from a treasureClass.
typedef struct Turncounter Turncounter |
Represents the entity initialised from a CounterType.
typedef enum turnOption turnOption |
The different kinds of turnOption.
typedef enum turnOption_OP turnOption_OP |
The different kinds of turnOption_OP.
typedef struct Wincon Wincon |
Defines the entity initialised from a winconClass.
enum artifactClass |
The different kinds of artifactClass.
Ordering is directly related to artifactstrings. There must always be exactly ARTIFACTSMAX +1 values.
Enumerator | |
---|---|
THKSKULL | |
TWINKIE | |
WRISTBAND | |
BOARTAIL | |
CHAOSORB | |
POWERSYPHON | |
GIANTFOSSILE |
enum bossClass |
The different kinds of Boss.
Ordering is directly related to classbossstrings
Enumerator | |
---|---|
Blue_Troll | |
Headless_Ninja | |
Crawling_Dude | |
Sr_Warthog | |
Doppelganger |
enum chestClass |
The different kinds of Chest.
Ordering is directly related to chestnamestrings. There must always be exactly CHEST_CLASS_MAX +1 values.
Enumerator | |
---|---|
CHEST_BASE | |
CHEST_BEAST |
enum consumableClass |
The different kinds of Consumable.
Ordering is directly related to consumablestrings
Enumerator | |
---|---|
Potion | |
Rock | |
Bread | |
Coffee | |
Powergem | |
Magicbean |
enum counterIndexes |
The different indexes for Fighter->counters.
Ordering is directly related to Fighter->counters. There must always be exactly COUNTERSMAX +1 values.
Enumerator | |
---|---|
NORMAL | |
POISON | |
BURNED | |
FROZEN | |
WEAK | |
STRONG | |
TURNBOOST_ATK | |
TURNBOOST_DEF | |
TURNBOOST_VEL | |
TURNBOOST_ENR |
enum Countertype |
The different kinds of Countertype.
enum enemyClass |
The different kinds of Enemy.
Ordering is directly related to classenemystrings
Enumerator | |
---|---|
Mummy | |
Ghost | |
Zombie | |
Goblin | |
Imp | |
Troll | |
Boar | |
Werewolf |
enum equipClass |
The different kinds of Equip.
Ordering is directly related to equipstring. There must always be exactly EQUIPSMAX +1 values.
Enumerator | |
---|---|
Vest | |
Helmet | |
Boots | |
Cape | |
Tophat | |
Loafers |
enum Equipzone |
The different kinds of equip zones.
Ordering is directly related to equipzonestrings. There must always be exactly EQUIPZONES +1 values.
Enumerator | |
---|---|
HEAD | |
TORSO | |
LEGS |
enum fighterClass |
The different kinds of Fighter.
Ordering is directly related to classesstrings
Enumerator | |
---|---|
Knight | |
Archer | |
Mage | |
Assassin |
enum fighterStatus |
enum fightResult |
The different kinds of fightResult.
enum floorClass |
The different kinds of Floor.
Ordering is directly related to floornamestrings. There must always be exactly FLOOR_CLASS_MAX +1 values.
Enumerator | |
---|---|
STD_FLOOR | |
DBG_FLOOR |
enum foePartyClass |
The different kinds of FoeParty.
Ordering is directly related to foepartystrings
Enumerator | |
---|---|
Enemies | |
Bosses |
enum foeTurnOption |
enum foeTurnOption_OP |
The different kinds of foeTurnOption_OP.
Enumerator | |
---|---|
FOE_OP_INVALID | |
FOE_OP_IDLE | |
FOE_OP_FIGHT | |
FOE_OP_SPECIAL |
enum Gamemode |
enum HLP_Region_Type |
Defines indexes for all types that are allocated with Koliseo.
enum HLPD_KeyClass |
The different kinds of HLPD_Key.
Ordering is directly related to hlpd_keyclass_strings.
Enumerator | |
---|---|
HLPD_KEY_UP | |
HLPD_KEY_RIGHT | |
HLPD_KEY_DOWN | |
HLPD_KEY_LEFT | |
HLPD_KEY_DWNPAGE | |
HLPD_KEY_UPPAGE | |
HLPD_KEY_CONFIRM | |
HLPD_KEY_QUIT | |
HLPD_KEY_MENU |
enum OP_res |
The different kinds of OP_res.
enum perkClass |
enum quality |
The different grades of Equip.
Ordering is directly related to qualitytrings. There must always be exactly QUALITIESMAX +1 values.
Enumerator | |
---|---|
Bad | |
Average | |
Good |
enum roadforkOption |
The different kinds of Roadfork.
Ordering is directly related to roadforknamestrings. There must always be exactly ROADFORK_CLASS_MAX +1 values.
Enumerator | |
---|---|
ROADFORK_BOSS | |
ROADFORK_SHOP | |
ROADFORK_TREASURE | |
ROADFORK_ENEMIES | |
ROADFORK_ROADFORK |
enum roomClass |
The different kinds of Room.
Ordering is directly related to roomnamestrings. There must always be exactly ROOM_CLASS_MAX +1 values.
Enumerator | |
---|---|
ENEMIES | |
SHOP | |
BOSS | |
TREASURE | |
ROADFORK | |
HOME | |
WALL | |
BASIC |
enum saveType |
enum skillType |
enum specialMove |
The different kinds of special moves.
Ordering is directly related to specialsstrings and specialscosts. There must always be exactly SPECIALSMAX +1 values for each fighterClass.
Enumerator | |
---|---|
KSlash | |
KCover | |
KArmordrop | |
KBerserk | |
AHeadshot | |
AQuivercheck | |
APoisonshot | |
AFireshot | |
MFatewarp | |
MPowerup | |
MSpellstrike | |
MFlamering | |
XGrimdagger | |
XLeechknife | |
XDisguise | |
XVenomblade |
enum Stat |
enum treasureClass |
The different kinds of Treasure.
Ordering is directly related to treasuredescstrings. There must always be exactly TREASURE_CLASS_MAX +1 values.
Enumerator | |
---|---|
TREASURE_CHEST | |
TREASURE_CONSUMABLE | |
TREASURE_ARTIFACT |
enum turnOption |
The different kinds of turnOption.
Enumerator | |
---|---|
NEW_GAME | |
LOAD_GAME | |
INVALID | |
FIGHT | |
SPECIAL | |
QUIT | |
CONSUMABLE | |
ARTIFACTS | |
EQUIPS | |
PERKS | |
STATS | |
SAVE | |
EXPLORE | |
DEBUG | |
TUTORIAL | |
CLOSE_MENU | |
SKILL | |
GAME_OPTIONS |
enum turnOption_OP |
The different kinds of turnOption_OP.
enum winconClass |
foeTurnOption_OP foeTurnOP_from_foeTurnOption | ( | foeTurnOption | ft | ) |
Returns a foeTurnOption_OP from a foeTurnOption.
ft | The foeTurnOption to convert. |
OP_res OP_res_from_fightResult | ( | fightResult | fr | ) |
Returns a OP_res from a fightResult fr.
fr | The fightResult to convert. |
turnOption_OP turnOP_from_turnOption | ( | turnOption | t | ) |
Returns a turnOption_OP from a turnOption.
t | The turnOption to convert. |
|
extern |
|
extern |
Array with the name strings for artifactClass.
|
extern |
Array containing all BossBaseStats instances.
All the classes get their starting stats from here. Ordering of parameters is: hp, atk, def, vel, level, xp, totalhp, beast(0), totalenergy
|
extern |
Array containing all EnemyBaseStats instances.
All the classes get their starting stats from here. Ordering of parameters is: hp, atk, def, vel, level, xp, totalhp, beast(0), totalenergy
|
extern |
Array containing all FoePartyBaseStats instances.
All the classes get their starting stats from here. Ordering of parameters is: class, level
|
extern |
Array containing all BaseStats instances.
All the classes get their starting stats from here. Ordering of parameters is: hp, atk, def, vel, level, totalxp (0), totallevelxp (1), currentlevelxp (0), totalhp, totalenergy
|
extern |
Array with the desc strings for chestClass.
|
extern |
Array with the name strings for bossClass.
|
extern |
Array with the name strings for enemyClass.
|
extern |
Array with the name strings for fighterClass.
|
extern |
Array containing all Consumable instances.
All the Consumable->qty values are initialised to 0
|
extern |
Array with the name strings for Consumable.
|
extern |
|
extern |
Global variable for default Koliseo.
|
extern |
Array containing all Equip instances.
All the Equip->qty values are initialised to 0
|
extern |
Array with the name strings for equipClass.
|
extern |
Array with the name strings for equip zones.
|
extern |
Array with the name strings for fightResult.
|
extern |
Array with the name strings for floorClass.
|
extern |
Array with the name strings for foePartyClass.
|
extern |
Array with the name strings for foeTurnOption.
|
extern |
Global variable for debug enemy in ENEMIES roomtype flag.
|
extern |
Global variable for debug enemy flag, set to the passed string argument.
|
extern |
Global variable for debug enemy flag.
|
extern |
Global variable for debug flag.
|
extern |
Global variable for debug roomtype flag.
|
extern |
Global variable for debug room flag, set to the passed string argument.
|
extern |
Global variable for debug room flag.
|
extern |
Global variable for a tutorial launch.
|
extern |
Global variable for experimental features flag.
|
extern |
Global variable for fast quit flag.
|
extern |
Global variable used to store Gamestate address when KLS_Region is not available.
Could be used even with it. Useful to save the game in a pinch, like when receiving SIGINT.
|
extern |
Global variable for godmode flag.
|
extern |
Global variable for debug logging flag.
|
extern |
TODO Remove mentions of this.
Global variable for load animations flag. Legacy.
|
extern |
Global variable used to count advancements of the rng.
|
extern |
Global variable for seeded run flag, set to the passed string argument.
|
extern |
Global variable for seeded run flag.
|
extern |
Global variable for using current directory to store game run files.
|
extern |
Global variable for using terminal default color.
|
extern |
Global variable for using vim-like directional keys.
|
extern |
Global variable for using WASD directional keys.
|
extern |
Global variable for gamemode flag.
|
extern |
Array with the name strings for Gamemode.
|
extern |
Global variable for autosave setting.
|
extern |
|
extern |
|
extern |
We need to undef these macros if they exist, since windows.h may declare them (and here we inherit that from koliseo.h).
< Defines the color palette used for the s4c functions, includes s4c.h. Defines a formatted string for title output to FILE.
|
extern |
Array with the name strings for HLP_Region_Type values.
|
extern |
Array with the default directional keys for all schemas defined as HLPD_DirectionalKeys_Schema.
|
extern |
Array with the keybinds for the game.
|
extern |
Array with the name strings for HLPD_DirectionalKeys_Schema.
|
extern |
Array with the name strings for Gamemode.
|
extern |
|
extern |
Array with the name strings for OP_res.
|
extern |
Array with the desc strings for perkClass.
|
extern |
Array with the name strings for perkClass.
|
extern |
Array with the name strings for quality.
|
extern |
Array with the name strings for roadforkClass.
|
extern |
Array with the name strings for roomClass.
|
extern |
Array with the name strings for saveType.
|
extern |
Array with the cost integer values for skills.
|
extern |
Array with the desc strings for skills.
|
extern |
Array with the name strings for skills.
|
extern |
Array with the cost integer values for special moves.
|
extern |
Array with the desc strings for special moves.
|
extern |
Array with the name strings for special moves.
|
extern |
Global variable for support Koliseo.
|
extern |
Global variable for temporary Koliseo.
|
extern |
|
extern |
Array with the name strings for treasureClass.
|
extern |
Array with the name strings for turnOption.
|
extern |
Array with the desc strings for winconClass.