23#define HELAPORDO_OS "unknown"
26#ifndef HELAPORDO_MACHINE
27#define HELAPORDO_MACHINE "unknown"
30#include "../../ringabuf/src/ringabuf.h"
32#ifdef HELAPORDO_CURSES_BUILD
34#include <ncursesw/panel.h>
37#define S4C_WIN_GREEN 2
40#define S4C_WIN_WHITE 5
41#define S4C_WIN_YELLOW 6
42#define S4C_WIN_BLACK_ON_WHITE 7
43#define S4C_WIN_PURPLE 8
44#define S4C_WIN_WHITE_ON_RED 9
45#define S4C_WIN_WHITE_ON_PURPLE 10
53typedef struct GameScreen {
64#ifndef HELAPORDO_RAYLIB_BUILD
65#error "HELAPORDO_CURSES_BUILD and HELAPORDO_RAYLIB_BUILD are both undefined."
70typedef enum GameScreen { LOGO = 0, TITLE, SAVES_VIEW, NAMEPICK_VIEW, CLASSPICK_VIEW, FLOOR_VIEW, ROOM_VIEW, ENDING, DOOR_ANIM } GameScreen;
80#define WIN32_LEAN_AND_MEAN
87#include "../../koliseo/src/koliseo.h"
125#define HLPD_KEYCLASS_MAX 8
162#define HLPD_DIRECTIONALKEYS_SCHEMAS_MAX 2
199#ifndef KLS_HAS_REGION
200#define KLS_REGIONTYPE_MAX 2
244#define HLP_MAX_INDEX (HR_loadInfo-100+KLS_REGIONTYPE_MAX)
361#define HELAPORDO_MAJOR_VERSION 1
366#define HELAPORDO_MINOR_VERSION 4
371#define HELAPORDO_PATCH_VERSION 13
376#define VERSION "1.4.13"
378#define HELAPORDO_BINSAVEFILE_VERSION "0.0.7"
383static const int HELAPORDO_API_VERSION_INT =
387#define EXPECTED_NCURSES_VERSION_MAJOR 6
388#define EXPECTED_NCURSES_VERSION_MINOR 4
389#define EXPECTED_NCURSES_VERSION_PATCH 20230520
390#define EXPECTED_RAYLIB_VERSION_MAJOR 4
391#define EXPECTED_RAYLIB_VERSION_MINOR 5
392#define EXPECTED_RAYLIB_VERSION_PATCH 0
410#define MAX_SAVESLOTS 3
423#define MAXPLAYERLUCK 30
449#define GAMEMODE_MAX 0
486#define CONSUMABLESMAX 5
535#define ARTIFACTSMAX 6
563#define ENEMY_ARTIFACTDROP_CHANCE 1001
672#define ENEMYCLASSESMAX 7
728#define BOSSCLASSESMAX 4
856#define SKILLSTOTAL SKILL_TYPE_MAX
858#define FIGHTER_SKILL_SLOTS SKILLSTOTAL
859#define ENEMY_SKILL_SLOTS SKILLSTOTAL
860#define BOSS_SKILL_SLOTS SKILLSTOTAL
954#define EQUIPSBAGSIZE 20
983#define EQUIPPERKSMAX 2
1021#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
1044#ifdef HELAPORDO_CURSES_BUILD
1045typedef void (*callback_special_t)(WINDOW *,
struct Fighter *,
struct Enemy *,
1046 struct Boss *,
struct Path *, int, int, int);
1048#ifndef HELAPORDO_RAYLIB_BUILD
1049#error "HELAPORDO_CURSES_BUILD and HELAPORDO_RAYLIB_BUILD are both undefined."
1051typedef void (*callback_special_t)(Rectangle* r,
struct Fighter *,
struct Enemy *,
1052 struct Boss *,
struct Path *, int, int, int);
1064 struct Boss *,
int isBoss);
1071#define FIGHTER_NAME_BUFSIZE 50
1323#define WINCON_CLASS_MAX 2
1340#define PATH_SEED_BUFSIZE 20
1392#define QUALITIESMAX 2
1473#define ITEM_SHOP_MAX 20
1478#define EQUIP_SHOP_MAX 2
1483#define CONSUMABLE_SHOP_MAX 3
1488#define SINGLE_CONSUMABLE_SHOP_MAX 3
1523#define CHEST_CLASS_MAX 1
1528#define CHEST_CONSUMABLES_MAX 5
1532#define CHEST_EQUIPS_MAX 5
1577#define TREASURE_CLASS_MAX 3
1622#define ROADFORK_OPTIONS_MAX 4
1665#define ROOM_CLASS_MAX 7
1676#define ROOM_ENEMIES_MAX 4
1683#define FOES_BOSSES_MAX 2
1700#define FOEPARTY_CLASS_MAX 1
1790#define FLOOR_CLASS_MAX 1
1802#define FLOOR_MAX_COLS 24
1808#define FLOOR_MAX_ROWS 24
1836#define MAX_ROGUE_FLOORS 17
1852#define SAVETYPE_MAX 2
1910#ifdef HELAPORDO_CURSES_BUILD
1913#ifndef HELAPORDO_RAYLIB_BUILD
1914#error "HELAPORDO_CURSES_BUILD and HELAPORDO_RAYLIB_BUILD are both undefined.\n"
1924#ifndef KOLISEO_HAS_REGION
1998#define TURNOP_MAX 17
2040#define FOETURNOP_MAX 3
2053#define OPS_LOGFILE "OPS_log.txt"
2078#define OP_RES_MAX 10
2102#ifdef HELAPORDO_CURSES_BUILD
2105#ifndef HELAPORDO_RAYLIB_BUILD
2106#error "HELAPORDO_CURSES_BUILD and HELAPORDO_RAYLIB_BUILD are both undefined."
2108 Rectangle *notify_win;
2142#define BSTFACTOR 1.5
2148#define ENEMYLVLRATIO 2
2153#define SPECIALLVLRATIO 2
2158#define EQUIPLVLBOOSTRATIO 3
2177#define FIGHT_RES_TOT 7
2193#define CHEST_FRAMES 25
2194#define CHEST_ROWS 18
2195#define CHEST_COLS 18
2196#define CHEST_FRAMETIME 67
2198#define CURSES_BINSAVE_NAME "save-nc.bin"
2199#define RL_BINSAVE_NAME "save-rl.bin"
2201#define CURSES_GMSTSAVE_NAME "run-nc.bin"
2202#define RL_GMSTSAVE_NAME "run-rl.bin"
2204#define CURSES_SETTINGS_SAVE_NAME "settings-nc.bin"
2205#define RL_SETTINGS_SAVE_NAME "settings-rl.bin"
2211#define NOTIFICATION_BUFFER_SIZE 200
2222#define NOTIFICATIONS_RINGBUFFER_SIZE 7
const wchar_t TORSO_CHAR_ICON
Definition game_core.c:613
char * foeturnopstrings[FOETURNOP_MAX+1]
Array with the name strings for foeTurnOption.
Definition game_core.c:334
char * perksdescstrings[PERKSMAX+1]
Array with the desc strings for perkClass.
Definition game_core.c:514
HLPD_Key hlpd_default_keybinds[HLPD_KEYCLASS_MAX+1]
Array with the keybinds for the game.
Definition game_core.c:46
Consumable consumablesBase[CONSUMABLESMAX+1]
Array containing all Consumable instances.
Definition game_core.c:360
char * specialsdescstrings[CLASSESMAX+1][SPECIALSMAX+1]
Array with the desc strings for special moves.
Definition game_core.c:460
char * hlp_regiontype_strings[HLP_MAX_INDEX+1]
Array with the name strings for HLP_Region_Type values.
Definition game_core.c:98
Saveslot default_saveslots[MAX_SAVESLOTS+1]
Array with the default saveslots for a game.
Definition game_core.c:136
char * classbossstrings[BOSSCLASSESMAX+1]
Array with the name strings for bossClass.
Definition game_core.c:436
char * hlpd_keyclass_strings[HLPD_KEYCLASS_MAX+1]
Array with the name strings for Gamemode.
Definition game_core.c:34
char * roomnamestrings[ROOM_CLASS_MAX+1]
Array with the name strings for roomClass.
Definition game_core.c:579
char * winconstrings[WINCON_CLASS_MAX+1]
Array with the desc strings for winconClass.
Definition game_core.c:526
char * skillsnamestrings[SKILLSTOTAL+1]
Array with the name strings for skills.
Definition game_core.c:475
Artifact artifactsBase[ARTIFACTSMAX+1]
Array with all the Artifact found.
Definition game_core.c:380
char * qualitytrings[QUALITIESMAX+1]
Array with the name strings for quality.
Definition game_core.c:532
char * consumablestrings[CONSUMABLESMAX+1]
Array with the name strings for Consumable.
Definition game_core.c:351
FoePartyBaseStats basefoepartystats[FOEPARTY_CLASS_MAX+1]
Array containing all FoePartyBaseStats instances.
Definition game_core.c:600
char * treasuredescstrings[TREASURE_CLASS_MAX+1]
Array with the name strings for treasureClass.
Definition game_core.c:565
char * equipstrings[EQUIPSMAX+1]
Array with the name strings for equipClass.
Definition game_core.c:538
char * gamemodenamestrings[GAMEMODE_MAX+1]
Array with the name strings for Gamemode.
Definition game_core.c:94
char * classesstrings[CLASSESMAX+1]
Array with the name strings for fighterClass.
Definition game_core.c:397
char * foepartystrings[FOEPARTY_CLASS_MAX+1]
Array with the name strings for foePartyClass.
Definition game_core.c:595
char * roadforkoptionstrings[ROADFORK_OPTIONS_MAX+1]
Array with the name strings for roadforkClass.
Definition game_core.c:571
char * opresstrings[OP_RES_MAX+1]
Array with the name strings for OP_res.
Definition game_core.c:299
Equip equips[EQUIPSMAX+1]
Array containing all Equip instances.
Definition game_core.c:547
BaseStats basestats[CLASSESMAX+1]
Array containing all BaseStats instances.
Definition game_core.c:404
char * fightresultstrings[FIGHT_RES_TOT+1]
Array with the name strings for fightResult.
Definition game_core.c:341
BossBaseStats basebossstats[BOSSCLASSESMAX+1]
Array containing all BossBaseStats instances.
Definition game_core.c:444
EnemyBaseStats baseenemystats[ENEMYCLASSESMAX+1]
Array containing all EnemyBaseStats instances.
Definition game_core.c:424
char * specialsnamestrings[CLASSESMAX+1][SPECIALSMAX+1]
Array with the name strings for special moves.
Definition game_core.c:453
char * perksnamestrings[PERKSMAX+1]
Array with the name strings for perkClass.
Definition game_core.c:502
char * floornamestrings[FLOOR_CLASS_MAX+1]
Array with the name strings for floorClass.
Definition game_core.c:590
char * turnopstrings[TURNOP_MAX+1]
Array with the name strings for turnOption.
Definition game_core.c:313
const wchar_t HEAD_CHAR_ICON
Definition game_core.c:612
char * skillsdescstrings[SKILLSTOTAL+1]
Array with the desc strings for skills.
Definition game_core.c:482
char * chestdescstrings[CHEST_CLASS_MAX+1]
Array with the desc strings for chestClass.
Definition game_core.c:560
char * hlpd_directionalkeyschemas_strings[HLPD_DIRECTIONALKEYS_SCHEMAS_MAX+1]
Array with the name strings for HLPD_DirectionalKeys_Schema.
Definition game_core.c:67
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.
Definition game_core.c:73
char * artifactstrings[ARTIFACTSMAX+1]
Array with the name strings for artifactClass.
Definition game_core.c:370
const GameOptions default_GameOptions
Definition game_core.c:622
int specialscosts[CLASSESMAX+1][SPECIALSMAX+1]
Array with the cost integer values for special moves.
Definition game_core.c:467
char * savetypestrings[SAVETYPE_MAX+1]
Array with the name strings for saveType.
Definition game_core.c:293
char * classenemystrings[ENEMYCLASSESMAX+1]
Array with the name strings for enemyClass.
Definition game_core.c:413
char * equipzonestrings[EQUIPZONES+1]
Array with the name strings for equip zones.
Definition game_core.c:496
int skillscosts[SKILLSTOTAL+1]
Array with the cost integer values for skills.
Definition game_core.c:489
const char * helapordo_build_string
Definition game_core.c:31
const wchar_t LEGS_CHAR_ICON
Definition game_core.c:614
const char * helapordo_title_string
We need to undef these macros if they exist, since windows.h may declare them (and here we inherit th...
Definition game_core.c:21
#define CHEST_CLASS_MAX
Maximum index of chestClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1523
void(* equip_fun)(Fighter *, Enemy *)
Defines a function pointer returning void and taking a Fighter and a Enemy pointers.
Definition game_core.h:1454
#define NOTIFICATION_BUFFER_SIZE
Defines message buffer size for Notification.
Definition game_core.h:2211
void(* effect_fp_fun)(struct FoeParty *)
Defines a function pointer returning void and taking a FoeParty pointer.
Definition game_core.h:1248
enemyClass
The different kinds of Enemy.
Definition game_core.h:658
@ Werewolf
Definition game_core.h:666
@ Zombie
Definition game_core.h:661
@ Goblin
Definition game_core.h:662
@ Imp
Definition game_core.h:663
@ Troll
Definition game_core.h:664
@ Ghost
Definition game_core.h:660
@ Boar
Definition game_core.h:665
@ Mummy
Definition game_core.h:659
turnOption
The different kinds of turnOption.
Definition game_core.h:1939
@ DEBUG
Definition game_core.h:1953
@ EQUIPS
Definition game_core.h:1948
@ STATS
Definition game_core.h:1950
@ QUIT
Definition game_core.h:1945
@ SAVE
Definition game_core.h:1951
@ ARTIFACTS
Definition game_core.h:1947
@ SKILL
Definition game_core.h:1956
@ EXPLORE
Definition game_core.h:1952
@ FIGHT
Definition game_core.h:1943
@ CLOSE_MENU
Definition game_core.h:1955
@ SPECIAL
Definition game_core.h:1944
@ TUTORIAL
Definition game_core.h:1954
@ GAME_OPTIONS
Definition game_core.h:1957
@ CONSUMABLE
Definition game_core.h:1946
@ NEW_GAME
Definition game_core.h:1940
@ PERKS
Definition game_core.h:1949
@ LOAD_GAME
Definition game_core.h:1941
@ INVALID
Definition game_core.h:1942
#define KLS_REGIONTYPE_MAX
Definition game_core.h:200
artifactClass
The different kinds of artifactClass.
Definition game_core.h:522
@ POWERSYPHON
Definition game_core.h:528
@ CHAOSORB
Definition game_core.h:527
@ TWINKIE
Definition game_core.h:524
@ BOARTAIL
Definition game_core.h:526
@ GIANTFOSSILE
Definition game_core.h:529
@ THKSKULL
Definition game_core.h:523
@ WRISTBAND
Definition game_core.h:525
void(* boost_fp_fun)(struct FoeParty *, int boost)
Defines a function pointer returning void and taking a FoeParty pointer and an integer.
Definition game_core.h:1273
Gamemode
The different kinds of Gamemode.
Definition game_core.h:442
@ Rogue
Definition game_core.h:443
#define HELAPORDO_MINOR_VERSION
Current minor release.
Definition game_core.h:366
#define CLASSESMAX
Maximum index of fighterClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:598
#define MAX_SAVESLOTS
Total number of Saveslot for the game.
Definition game_core.h:410
void(* callback_void_t)(void)
Defines a function pointer returning void and taking NO parameters (different than saying just (),...
Definition game_core.h:1069
#define FLOOR_CLASS_MAX
Maximum index of floorClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1790
#define SAVETYPE_MAX
Maximum value of saveType values.
Definition game_core.h:1852
#define FIGHTER_NAME_BUFSIZE
Definition game_core.h:1071
Countertype
The different kinds of Countertype.
Definition game_core.h:1279
@ CNT_VELBOOST
Counter for a temp boost on vel.
Definition game_core.h:1283
@ CNT_ATKBOOST
Counter for a temp boost on atk.
Definition game_core.h:1281
@ CNT_STATUS
Counter for a fighterStatus.
Definition game_core.h:1280
@ CNT_DEFBOOST
Counter for a temp boost on def.
Definition game_core.h:1282
@ CNT_ENRBOOST
Counter for a temp boost on enr.
Definition game_core.h:1284
#define CONSUMABLESMAX
Maximum index of consumableClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:486
#define FIGHTER_SKILL_SLOTS
Definition game_core.h:858
treasureClass
The different kinds of Treasure.
Definition game_core.h:1568
@ TREASURE_CONSUMABLE
Definition game_core.h:1570
@ TREASURE_CHEST
Definition game_core.h:1569
@ TREASURE_ARTIFACT
Definition game_core.h:1571
#define CONSUMABLE_SHOP_MAX
Maximum number of total consumables sold in a shop.
Definition game_core.h:1483
counterIndexes
The different indexes for Fighter->counters.
Definition game_core.h:905
@ TURNBOOST_VEL
Definition game_core.h:914
@ STRONG
Definition game_core.h:911
@ NORMAL
Definition game_core.h:906
@ TURNBOOST_DEF
Definition game_core.h:913
@ POISON
Definition game_core.h:907
@ BURNED
Definition game_core.h:908
@ TURNBOOST_ATK
Definition game_core.h:912
@ FROZEN
Definition game_core.h:909
@ TURNBOOST_ENR
Definition game_core.h:915
@ WEAK
Definition game_core.h:910
turnOption_OP turnOP_from_turnOption(turnOption t)
Returns a turnOption_OP from a turnOption.
Definition game_core.c:142
saveType
The different kinds of saveType.
Definition game_core.h:1842
@ HOME_SAVE
Definition game_core.h:1843
@ ENEMIES_SAVE
Definition game_core.h:1844
@ FLOORMENU_SAVE
Definition game_core.h:1845
foeTurnOption
The different kinds of foeTurnOption.
Definition game_core.h:2009
@ FOE_IDLE
Definition game_core.h:2011
@ FOE_INVALID
Definition game_core.h:2010
@ FOE_FIGHT
Definition game_core.h:2012
@ FOE_SPECIAL
Definition game_core.h:2013
#define EQUIP_SHOP_MAX
Maximum number of equips sold in a shop.
Definition game_core.h:1478
quality
The different grades of Equip.
Definition game_core.h:1383
@ Good
Definition game_core.h:1386
@ Average
Definition game_core.h:1385
@ Bad
Definition game_core.h:1384
#define OP_RES_MAX
Maximum value of OP_res values.
Definition game_core.h:2078
#define CHEST_EQUIPS_MAX
Maximum number of Equip held in a chest.
Definition game_core.h:1532
#define FOETURNOP_MAX
Maximum value for foeTurnOption_OP.
Definition game_core.h:2040
void(* callback_turncounter_enemy_t)(struct Enemy *)
Defines a function pointer returning void and taking a Enemy pointer.
Definition game_core.h:1035
floorClass
The different kinds of Floor.
Definition game_core.h:1782
@ DBG_FLOOR
Definition game_core.h:1784
@ STD_FLOOR
Definition game_core.h:1783
perkClass
The different kinds of perks.
Definition game_core.h:962
@ HARVESTER
Definition game_core.h:967
@ BIOHAZARD
Definition game_core.h:969
@ PENICILLIN
Definition game_core.h:971
@ CRITBOOST_CHANCE
Definition game_core.h:964
@ HOT_BODY
Definition game_core.h:968
@ CRITBOOST_DMG
Definition game_core.h:963
@ ORACLE_GIFT
Definition game_core.h:970
@ RUNIC_MAGNET
Definition game_core.h:966
@ VAMPIRISM
Definition game_core.h:965
#define PATH_SEED_BUFSIZE
Definition game_core.h:1340
#define FLOOR_MAX_COLS
Maximum value of cells in a Floor matrix column.
Definition game_core.h:1802
#define ARTIFACTSMAX
Maximum index of artifactClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:535
#define HELAPORDO_PATCH_VERSION
Current patch release.
Definition game_core.h:371
void(* callback_turncounter_fighter_t)(struct Fighter *)
Defines a function pointer returning void and taking a Fighter pointer.
Definition game_core.h:1028
#define HLP_MAX_INDEX
Defines max index for an HLP_Region_Type value.
Definition game_core.h:244
#define SKILLSTOTAL
Definition game_core.h:856
#define ROADFORK_OPTIONS_MAX
Maximum index of roadforkOption, so that the size has to add 1 for the 0th index.
Definition game_core.h:1622
#define ENEMY_SKILL_SLOTS
Definition game_core.h:859
Stat
The different kinds of Stat.
Definition game_core.h:609
@ ENR
Definition game_core.h:613
@ DEF
Definition game_core.h:611
@ VEL
Definition game_core.h:612
@ ATK
Definition game_core.h:610
void(* boost_b_fun)(Boss *, int boost)
Defines a function pointer returning void and taking a Boss pointer and an integer.
Definition game_core.h:1267
void(* effect_e_fun)(Enemy *)
Defines a function pointer returning void and taking a Enemy pointer.
Definition game_core.h:1236
#define COUNTERSMAX
Maximum index of counterIndexes, so that the size has to add 1 for the 0th index.
Definition game_core.h:922
fighterClass
The different kinds of Fighter.
Definition game_core.h:588
@ Archer
Definition game_core.h:590
@ Assassin
Definition game_core.h:592
@ Knight
Definition game_core.h:589
@ Mage
Definition game_core.h:591
#define TREASURE_CLASS_MAX
Maximum index of treasureClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1577
#define BOSSCLASSESMAX
Maximum index of bossClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:728
OP_res OP_res_from_fightResult(fightResult fr)
Returns a OP_res from a fightResult fr.
Definition game_core.c:251
#define BOSS_SKILL_SLOTS
Definition game_core.h:860
HLPD_KeyClass
The different kinds of HLPD_Key.
Definition game_core.h:110
@ HLPD_KEY_DOWN
Definition game_core.h:113
@ HLPD_KEY_UP
Definition game_core.h:111
@ HLPD_KEY_DWNPAGE
Definition game_core.h:115
@ HLPD_KEY_MENU
Definition game_core.h:119
@ HLPD_KEY_LEFT
Definition game_core.h:114
@ HLPD_KEY_UPPAGE
Definition game_core.h:116
@ HLPD_KEY_CONFIRM
Definition game_core.h:117
@ HLPD_KEY_QUIT
Definition game_core.h:118
@ HLPD_KEY_RIGHT
Definition game_core.h:112
#define EQUIPSBAGSIZE
Definition game_core.h:954
#define QUALITIESMAX
Maximum index of quality, so that the size has to add 1 for the 0th index.
Definition game_core.h:1392
#define TURNOP_MAX
Maximum value for turnOption_OP.
Definition game_core.h:1998
Equipzone
The different kinds of equip zones.
Definition game_core.h:934
@ HEAD
Definition game_core.h:935
@ LEGS
Definition game_core.h:937
@ TORSO
Definition game_core.h:936
void(* effect_b_fun)(Boss *)
Defines a function pointer returning void and taking a Boss pointer.
Definition game_core.h:1242
#define HLPD_DIRECTIONALKEYS_SCHEMAS_MAX
Maximum index of HLPD_DirectionalKeys_Schema, so that the size has to add 1 for the 0th index.
Definition game_core.h:162
equipClass
The different kinds of Equip.
Definition game_core.h:1363
@ Helmet
Definition game_core.h:1365
@ Boots
Definition game_core.h:1366
@ Vest
Definition game_core.h:1364
@ Loafers
Definition game_core.h:1369
@ Cape
Definition game_core.h:1367
@ Tophat
Definition game_core.h:1368
HLPD_DirectionalKeys_Schema
The different kinds of schemas available for directional keys.
Definition game_core.h:153
@ HLPD_ARROW_KEYS
Definition game_core.h:154
@ HLPD_WASD_KEYS
Definition game_core.h:156
@ HLPD_VIM_KEYS
Definition game_core.h:155
#define SPECIALSMAX
Maximum index of specialMove per class, so that the size for each Fighter has to add 1 for the 0th in...
Definition game_core.h:816
specialMove
The different kinds of special moves.
Definition game_core.h:794
@ XGrimdagger
Definition game_core.h:807
@ MFlamering
Definition game_core.h:806
@ APoisonshot
Definition game_core.h:801
@ KBerserk
Definition game_core.h:798
@ AQuivercheck
Definition game_core.h:800
@ XVenomblade
Definition game_core.h:810
@ KCover
Definition game_core.h:796
@ XDisguise
Definition game_core.h:809
@ XLeechknife
Definition game_core.h:808
@ KArmordrop
Definition game_core.h:797
@ AFireshot
Definition game_core.h:802
@ MSpellstrike
Definition game_core.h:805
@ AHeadshot
Definition game_core.h:799
@ KSlash
Definition game_core.h:795
@ MPowerup
Definition game_core.h:804
@ MFatewarp
Definition game_core.h:803
#define ROOM_CLASS_MAX
Maximum index of roomClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1665
fighterStatus
The different kinds of fighterStatus.
Definition game_core.h:568
@ Poison
Definition game_core.h:570
@ Frozen
Definition game_core.h:571
@ Burned
Definition game_core.h:572
@ Normal
Definition game_core.h:569
@ Strong
Definition game_core.h:574
@ Weak
Definition game_core.h:573
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,...
Definition game_core.h:1063
roadforkOption
The different kinds of Roadfork.
Definition game_core.h:1611
@ ROADFORK_ROADFORK
Definition game_core.h:1616
@ ROADFORK_SHOP
Definition game_core.h:1613
@ ROADFORK_TREASURE
Definition game_core.h:1614
@ ROADFORK_BOSS
Definition game_core.h:1612
@ ROADFORK_ENEMIES
Definition game_core.h:1615
foeTurnOption_OP
The different kinds of foeTurnOption_OP.
Definition game_core.h:2020
@ FOE_OP_IDLE
Definition game_core.h:2022
@ FOE_OP_INVALID
Definition game_core.h:2021
@ FOE_OP_FIGHT
Definition game_core.h:2023
@ FOE_OP_SPECIAL
Definition game_core.h:2024
#define WINCON_CLASS_MAX
Maximum index of winconClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1323
#define FOES_BOSSES_MAX
Maximum number of bosses when in a FoeParty.
Definition game_core.h:1683
turnOption_OP
The different kinds of turnOption_OP.
Definition game_core.h:1964
@ OP_DEBUG
Definition game_core.h:1978
@ OP_ARTIFACTS
Definition game_core.h:1972
@ OP_FIGHT
Definition game_core.h:1968
@ OP_INVALID
Definition game_core.h:1967
@ OP_LOAD_HOMEROOM
Definition game_core.h:1980
@ OP_SKILL
Definition game_core.h:1981
@ OP_CHANGE_OPTIONS
Definition game_core.h:1982
@ OP_STATS
Definition game_core.h:1975
@ OP_SAVE
Definition game_core.h:1976
@ OP_LOAD_GAME
Definition game_core.h:1966
@ OP_LOAD_ENEMYROOM
Definition game_core.h:1979
@ OP_NEW_GAME
Definition game_core.h:1965
@ OP_SPECIAL
Definition game_core.h:1969
@ OP_PERKS
Definition game_core.h:1974
@ OP_EXPLORE
Definition game_core.h:1977
@ OP_CONSUMABLE
Definition game_core.h:1971
@ OP_QUIT
Definition game_core.h:1970
@ OP_EQUIPS
Definition game_core.h:1973
consumableClass
The different kinds of Consumable.
Definition game_core.h:474
@ Magicbean
Definition game_core.h:480
@ Rock
Definition game_core.h:476
@ Coffee
Definition game_core.h:478
@ Powergem
Definition game_core.h:479
@ Potion
Definition game_core.h:475
@ Bread
Definition game_core.h:477
#define FLOOR_MAX_ROWS
Maximum value of cells in a Floor matrix row.
Definition game_core.h:1808
foePartyClass
The different kinds of FoeParty.
Definition game_core.h:1692
@ Bosses
Definition game_core.h:1694
@ Enemies
Definition game_core.h:1693
#define CHEST_CONSUMABLES_MAX
Maximum number of Consumable held in a chest.
Definition game_core.h:1528
#define EQUIPZONES
Maximum index of Equipzone, so that the size has to add 1 for the 0th index.
Definition game_core.h:943
void(* boost_e_fun)(Enemy *, int boost)
Defines a function pointer returning void and taking a Enemy pointer and an integer.
Definition game_core.h:1261
bossClass
The different kinds of Boss.
Definition game_core.h:717
@ Blue_Troll
Definition game_core.h:718
@ Crawling_Dude
Definition game_core.h:720
@ Doppelganger
Definition game_core.h:722
@ Sr_Warthog
Definition game_core.h:721
@ Headless_Ninja
Definition game_core.h:719
roomClass
The different kinds of Room.
Definition game_core.h:1651
@ BASIC
Definition game_core.h:1659
@ ENEMIES
Definition game_core.h:1652
@ ROADFORK
Definition game_core.h:1656
@ SHOP
Definition game_core.h:1653
@ HOME
Definition game_core.h:1657
@ BOSS
Definition game_core.h:1654
@ TREASURE
Definition game_core.h:1655
@ WALL
Definition game_core.h:1658
#define FOEPARTY_CLASS_MAX
Maximum index of foePartyClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1700
skillType
Definition game_core.h:849
@ SKILL_TYPE_ATKBOOST
Definition game_core.h:850
@ SKILL_TYPE_MAX
Definition game_core.h:853
@ SKILL_TYPE_LAST_UNLOCKABLE
Definition game_core.h:851
@ SKILL_TYPE_IDLE
Definition game_core.h:852
HLP_Region_Type
Defines indexes for all types that are allocated with Koliseo.
Definition game_core.h:206
@ HR_Boss
Definition game_core.h:214
@ HR_countStats
Definition game_core.h:230
@ HR_Room_desc
Definition game_core.h:229
@ HR_Perk
Definition game_core.h:221
@ HR_Treasure
Definition game_core.h:225
@ HR_Turncounter_desc
Definition game_core.h:228
@ HR_Equip
Definition game_core.h:216
@ HR_Skillslot
Definition game_core.h:219
@ HR_Shop
Definition game_core.h:226
@ HR_Path
Definition game_core.h:207
@ HR_Saveslot
Definition game_core.h:231
@ HR_Equipslot
Definition game_core.h:217
@ HR_Specialslot
Definition game_core.h:218
@ HR_Consumable
Definition game_core.h:222
@ HR_BSP_Room
Definition game_core.h:235
@ HR_GameOptions
Definition game_core.h:234
@ HR_Wincon
Definition game_core.h:208
@ HR_Floor
Definition game_core.h:210
@ HR_FoeParty
Definition game_core.h:215
@ HR_loadInfo
Definition game_core.h:238
@ HR_Notification
Definition game_core.h:236
@ HR_Enemy
Definition game_core.h:213
@ HR_Gamestate
Definition game_core.h:232
@ HR_turnOP_args
Definition game_core.h:211
@ HR_RingaBuf
Definition game_core.h:237
@ HR_Artifact
Definition game_core.h:223
@ HR_Turncounter
Definition game_core.h:220
@ HR_Fighter
Definition game_core.h:212
@ HR_Gamescreen
Definition game_core.h:233
@ HR_Roadfork
Definition game_core.h:227
@ HR_Chest
Definition game_core.h:224
@ HR_Room
Definition game_core.h:209
#define EQUIPSMAX
Maximum index of equipClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:1375
winconClass
The different kinds of Wincon.
Definition game_core.h:1314
@ ALL_ARTIFACTS
Collect all the artifacts.
Definition game_core.h:1315
@ FULL_PATH
Finish all the room in your path.
Definition game_core.h:1316
@ ALL_BOSSES
Kill all the bosses once.
Definition game_core.h:1317
#define HLPD_KEYCLASS_MAX
Maximum index of HLPD_KeyClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:125
void(* effect_fun)(Fighter *)
Defines a function pointer returning void and taking a Fighter pointer.
Definition game_core.h:1230
foeTurnOption_OP foeTurnOP_from_foeTurnOption(foeTurnOption ft)
Returns a foeTurnOption_OP from a foeTurnOption.
Definition game_core.c:221
void(* boost_fun)(Fighter *, int boost)
Defines a function pointer returning void and taking a Fighter pointer and an integer.
Definition game_core.h:1255
#define ROOM_ENEMIES_MAX
Maximum number of enemies in a room.
Definition game_core.h:1676
fightResult
The different kinds of fightResult.
Definition game_core.h:2163
@ FIGHTRES_DEATH
Value of fight status indicating the fighter died.
Definition game_core.h:2168
@ FIGHTRES_INVALID
Value of fight status indicating errors in the fight call.
Definition game_core.h:2164
@ FIGHTRES_DMG_DEALT
Value of fight status indicating the enemy was damaded.
Definition game_core.h:2166
@ FIGHTRES_DMG_TAKEN
Value of fight status indicating the fighter was damaded.
Definition game_core.h:2167
@ FIGHTRES_CLASH
Value of fight status indicating damage on both sides occurred.
Definition game_core.h:2170
@ FIGHTRES_NO_DMG
Value of fight status indicating no damage occurred.
Definition game_core.h:2169
@ FIGHTRES_KILL_DONE
Value of fight status indicating the enemy died.
Definition game_core.h:2165
#define EQUIPPERKSMAX
Maximum number of Perk per Equip.
Definition game_core.h:983
chestClass
The different kinds of Chest.
Definition game_core.h:1515
@ CHEST_BEAST
Definition game_core.h:1517
@ CHEST_BASE
Definition game_core.h:1516
#define PERKSMAX
Maximum index of perkClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:977
#define GAMEMODE_MAX
Maximum index of Gamemode, so that the size has to add 1 for the 0th index.
Definition game_core.h:449
#define ENEMYCLASSESMAX
Maximum index of enemyClass, so that the size has to add 1 for the 0th index.
Definition game_core.h:672
#define FIGHT_RES_TOT
Total number of defined fightResult values.
Definition game_core.h:2177
#define HELAPORDO_MAJOR_VERSION
Current major release.
Definition game_core.h:361
OP_res
The different kinds of OP_res.
Definition game_core.h:2059
@ OP_RES_NO_DMG
Value of fight status indicating no damage occurred.
Definition game_core.h:2068
@ OP_RES_KILL_DONE
Value of fight status indicating the enemy died.
Definition game_core.h:2064
@ OP_RES_LOADED_ENEMYROOM
Value of OP_res indicating success in loading a enemyroom.
Definition game_core.h:2070
@ OP_CANNOT_OPEN_SAVEFILE
Definition game_core.h:2063
@ OP_RES_DEATH
Value of fight status indicating the fighter died.
Definition game_core.h:2067
@ OP_RES_DMG_DEALT
Value of fight status indicating the enemy was damaged.
Definition game_core.h:2065
@ INVALID_OP
Definition game_core.h:2061
@ OP_RES_CLASH
Value of fight status indicating damage on both sides occurred.
Definition game_core.h:2069
@ OP_RES_DMG_TAKEN
Value of fight status indicating the fighter was damaged.
Definition game_core.h:2066
@ OP_OK
Definition game_core.h:2060
@ NO_OP
Definition game_core.h:2062
int GS_AUTOSAVE_ON
Global variable for autosave setting.
Definition main.c:51
int G_DEBUG_ROOMTYPE
Global variable for debug roomtype flag.
Definition main.c:42
int G_FASTQUIT_ON
Global variable for fast quit flag.
Definition main.c:40
char * G_SEEDED_RUN_ARG
Global variable for seeded run flag, set to the passed string argument.
Definition main.c:61
int G_DEBUG_ENEMYTYPE_ON
Global variable for debug enemy flag.
Definition main.c:46
int G_USE_DEFAULT_BACKGROUND
Global variable for using terminal default color.
Definition main.c:54
Koliseo * support_kls
Global variable for support Koliseo.
Definition main.c:66
int G_SEEDED_RUN_ON
Global variable for seeded run flag.
Definition main.c:60
int G_USE_VIM_DIRECTIONAL_KEYS
Global variable for using vim-like directional keys.
Definition main.c:55
Koliseo * default_kls
Global variable for default Koliseo.
Definition main.c:64
int G_DEBUG_ON
Global variable for debug flag.
Definition main.c:37
int G_PRELOAD_ANIMATIONS_ON
TODO Remove mentions of this.
Definition main.c:36
int G_DEBUG_ENEMYTYPE
Global variable for debug enemy in ENEMIES roomtype flag.
Definition main.c:45
int G_GODMODE_ON
Global variable for godmode flag.
Definition main.c:41
char * G_DEBUG_ROOMTYPE_ARG
Global variable for debug room flag, set to the passed string argument.
Definition main.c:44
int G_USE_WASD_DIRECTIONAL_KEYS
Global variable for using WASD directional keys.
Definition main.c:56
int G_USE_CURRENTDIR
Global variable for using current directory to store game run files.
Definition main.c:53
Koliseo * temporary_kls
Global variable for temporary Koliseo.
Definition main.c:65
Gamemode GAMEMODE
Global variable for gamemode flag.
Definition main.c:63
char * G_DEBUG_ENEMYTYPE_ARG
Global variable for debug enemy flag, set to the passed string argument.
Definition main.c:47
int G_DOTUTORIAL_ON
Global variable for a tutorial launch.
Definition main.c:49
int64_t G_RNG_ADVANCEMENTS
Global variable used to count advancements of the rng.
Definition main.c:58
int G_LOG_ON
Global variable for debug logging flag.
Definition main.c:38
int G_DEBUG_ROOMTYPE_ON
Global variable for debug room flag.
Definition main.c:43
Gamestate * G_GAMESTATE
Global variable used to store Gamestate address when KLS_Region is not available.
Definition main.c:33
int G_EXPERIMENTAL_ON
Global variable for experimental features flag.
Definition main.c:39
Represents the entity initialised from a artifactClass.
Definition game_core.h:541
char desc[50]
Description string.
Definition game_core.h:544
char name[25]
Name string.
Definition game_core.h:543
int innerValue
Indicates interal state of the item when needed.
Definition game_core.h:547
int qty
Indicates how many copies of the artifact the instance of this class holds.
Definition game_core.h:545
int active
Flag used to mark instance whose function pointer has been called already.
Definition game_core.h:546
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:548
Holds the base stats for a fighterClass.
Definition game_core.h:627
int level
Level value.
Definition game_core.h:633
int totallevelxp
Xp value needed to level up from current level.
Definition game_core.h:635
int hp
Hp value.
Definition game_core.h:629
int def
Def value.
Definition game_core.h:631
int totalhp
Total hp value.
Definition game_core.h:637
int atk
Atk value.
Definition game_core.h:630
int totalenergy
Total energy value.
Definition game_core.h:638
int currentlevelxp
Total xp value for current level.
Definition game_core.h:636
int totalxp
Lifetime xp value.
Definition game_core.h:634
int totalstamina
Total stamina value.
Definition game_core.h:639
int vel
Vel value.
Definition game_core.h:632
Holds the base stats for a bossClass.
Definition game_core.h:743
int totalstamina
Total stamina value.
Definition game_core.h:754
int totalenergy
Total energy value.
Definition game_core.h:753
int totalhp
Total hp value.
Definition game_core.h:751
int hp
Hp value.
Definition game_core.h:745
int atk
Atk value.
Definition game_core.h:746
int xp
Xp value given on death.
Definition game_core.h:750
int def
Def value.
Definition game_core.h:747
int vel
Vel value.
Definition game_core.h:748
int beast
Flag used for "beast" enemies.
Definition game_core.h:752
int level
Level value.
Definition game_core.h:749
Represents the entity initialised from a bossClass.
Definition game_core.h:1194
int totalstamina
Full stamina value.
Definition game_core.h:1209
int hp
Current hp value.
Definition game_core.h:1196
int atk
Current atk value.
Definition game_core.h:1197
struct Turncounter * counters[COUNTERSMAX+1]
Array with all the Turncounter pointers.
Definition game_core.h:1215
int level
Level value.
Definition game_core.h:1200
int turnboost_vel
Current temp boost value for vel.
Definition game_core.h:1218
int stamina
Current stamina value.
Definition game_core.h:1208
int totalenergy
Full energy value.
Definition game_core.h:1206
int beast
Flag defining the instance as "beast" if set.
Definition game_core.h:1212
int vel
Current vel value.
Definition game_core.h:1199
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:1222
int energy
Current energy value.
Definition game_core.h:1205
Skillslot * skills[BOSS_SKILL_SLOTS+1]
Array with all the Skillslot.
Definition game_core.h:1214
int turnboost_atk
Current temp boost value for atk.
Definition game_core.h:1216
int turnboost_enr
Current temp boost value for enr.
Definition game_core.h:1219
fighterStatus status
Defines active fighterStatus.
Definition game_core.h:1211
int turnboost_def
Current temp boost value for def.
Definition game_core.h:1217
int totalhp
Full hp value.
Definition game_core.h:1203
int xp
Xp value given on death.
Definition game_core.h:1202
int prize
Amount of currency dropped on defeat.
Definition game_core.h:1221
int def
Current def value.
Definition game_core.h:1198
int luck
Luck value.
Definition game_core.h:1201
Represents the entity initialised from a chestClass.
Definition game_core.h:1547
char desc[80]
Description string.
Definition game_core.h:1549
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:1559
Equip * equips[CHEST_EQUIPS_MAX]
The contained equips.
Definition game_core.h:1557
int equipsCount
Defines how many equips the chest contains.
Definition game_core.h:1555
Consumable * consumables[CHEST_CONSUMABLES_MAX]
The contained consumables.
Definition game_core.h:1554
int consumablesCount
Defines how many consumables the chest contains.
Definition game_core.h:1552
Holds a certain qty of a consumableClass.
Definition game_core.h:492
int qty
Indicates how many copies of the consumable the instance of this class holds.
Definition game_core.h:496
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:497
char desc[50]
Contains a brief description of the consumable.
Definition game_core.h:495
char name[25]
Contains the name of the consumable.
Definition game_core.h:494
Holds the base stats for a enemyClass.
Definition game_core.h:687
int beast
Flag used for "beast" enemies.
Definition game_core.h:696
int xp
Xp value given on death.
Definition game_core.h:694
int atk
Atk value.
Definition game_core.h:690
int hp
Hp value.
Definition game_core.h:689
int totalenergy
Total energy value.
Definition game_core.h:697
int totalstamina
Total stamina value.
Definition game_core.h:698
int def
Def value.
Definition game_core.h:691
int totalhp
Total hp value.
Definition game_core.h:695
int vel
Vel value.
Definition game_core.h:692
int level
Level value.
Definition game_core.h:693
Represents the entity initialised from a enemyClass.
Definition game_core.h:1153
int totalenergy
Full energy value.
Definition game_core.h:1166
int energy
Current energy value.
Definition game_core.h:1165
int def
Current def value.
Definition game_core.h:1158
int hp
Current hp value.
Definition game_core.h:1156
Skillslot * skills[ENEMY_SKILL_SLOTS+1]
Array with all the Skillslot.
Definition game_core.h:1174
fighterStatus status
Defines active fighterStatus.
Definition game_core.h:1171
int luck
Luck value.
Definition game_core.h:1161
int level
Level value.
Definition game_core.h:1160
struct Turncounter * counters[COUNTERSMAX+1]
Array with all the Turncounter pointers.
Definition game_core.h:1176
int turnboost_atk
Current temp boost value for atk.
Definition game_core.h:1177
int xp
Xp value given on death.
Definition game_core.h:1162
int index
Defines position inside containing foeParty.
Definition game_core.h:1154
int atk
Current atk value.
Definition game_core.h:1157
int beast
Flag defining the instance as "beast" if set.
Definition game_core.h:1172
int turnboost_enr
Current temp boost value for enr.
Definition game_core.h:1180
int prize
Amount of currency dropped on defeat.
Definition game_core.h:1182
int totalstamina
Full stamina value.
Definition game_core.h:1169
int turnboost_vel
Current temp boost value for vel.
Definition game_core.h:1179
int stamina
Current stamina value.
Definition game_core.h:1168
int turnboost_def
Current temp boost value for def.
Definition game_core.h:1178
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:1183
int totalhp
Full hp value.
Definition game_core.h:1163
int vel
Current vel value.
Definition game_core.h:1159
Represents the entity initialised from a equipClass.
Definition game_core.h:1406
void(* equip_fun)(Fighter *, Enemy *, Path *)
Pointer to temp boost function applying to Enemy, takes a int.
Definition game_core.h:1429
int vel
equip boost vel value
Definition game_core.h:1420
Perk * perks[EQUIPPERKSMAX]
Array of Perk of the instance.
Definition game_core.h:1430
int level
Level value.
Definition game_core.h:1415
int enr
equip boost enr value
Definition game_core.h:1421
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:1431
int atk
equip boost atk value
Definition game_core.h:1418
int qty
Defines how many copies of the equipClass the instance holds.
Definition game_core.h:1411
int perksCount
Defines how many Perk pointers the instance holds.
Definition game_core.h:1424
int cost
Helps giving a coin value when selling or buying the equip.
Definition game_core.h:1426
quality qual
Defines which kind of quality the instances relates to.
Definition game_core.h:1428
int def
equip boost def value
Definition game_core.h:1419
char name[25]
Name string.
Definition game_core.h:1409
char desc[50]
Description string.
Definition game_core.h:1410
int bonus
Defines how many pointers to bonus functions the instance holds.
Definition game_core.h:1423
int equipped
Flag indicating the instance as currently in use if set.
Definition game_core.h:1413
Equipzone type
Defines which kind of Equipzone the instance relates to.
Definition game_core.h:1408
Represents the entity containing an Equip instance.
Definition game_core.h:1461
Equipzone type
Defines which kind of Equipzone the instance relates to.
Definition game_core.h:1464
Equip * item
Pointer to the Equip instance associated.
Definition game_core.h:1466
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:1465
char * desc
Description string.
Definition game_core.h:1463
int active
Flag indicating the instance as currently ready to use if set.
Definition game_core.h:1462
Represents the entity initialised from a fighterClass.
Definition game_core.h:1083
int equipboost_atk
Current equip boost value for atk.
Definition game_core.h:1127
int turnboost_def
Current temp boost value for def.
Definition game_core.h:1107
int level
Current level value.
Definition game_core.h:1090
countStats * stats
Pointer to countStats instance.
Definition game_core.h:1132
struct Artifact * artifactsBag[ARTIFACTSMAX+1]
Array with all the Artifacts found.
Definition game_core.h:1117
int vel
Current vel value.
Definition game_core.h:1089
int equipsBagOccupiedSlots
Keeps track of how many slots are occupied.
Definition game_core.h:1119
int energy
Current energy value.
Definition game_core.h:1098
Perk * perks[PERKSMAX+1]
Array with all the Perk.
Definition game_core.h:1112
int floor_y
Current y position in floor.
Definition game_core.h:1139
int permboost_vel
Current temp boost value for vel.
Definition game_core.h:1124
int equipboost_enr
Current equip boost value for enr.
Definition game_core.h:1130
Skillslot * skills[FIGHTER_SKILL_SLOTS+1]
Array with all the Skillslot.
Definition game_core.h:1103
int permboost_def
Current temp boost value for def.
Definition game_core.h:1123
int earliestBagSlot
Keeps track of first available spot.
Definition game_core.h:1120
int def
Current def value.
Definition game_core.h:1088
int turnboost_vel
Current temp boost value for vel.
Definition game_core.h:1108
int totalhp
Full hp value.
Definition game_core.h:1095
int luck
Current luck value.
Definition game_core.h:1091
int permboost_atk
Current temp boost value for atk.
Definition game_core.h:1122
struct Equip * equipsBag[EQUIPSBAGSIZE+1]
Array with all the Equip found.
Definition game_core.h:1115
fighterStatus status
Defines active fighterStatus.
Definition game_core.h:1096
struct Turncounter * counters[COUNTERSMAX+1]
Array with all the Turncounter pointers.
Definition game_core.h:1105
int keys_balance
Amount of keys owned.
Definition game_core.h:1135
int atk
Current atk value.
Definition game_core.h:1087
int equipboost_vel
Current equip boost value for vel.
Definition game_core.h:1129
int permboost_enr
Current temp boost value for enr.
Definition game_core.h:1125
int floor_x
Current x position in floor.
Definition game_core.h:1138
Consumable * consumablesBag[CONSUMABLESMAX+1]
Array with all the Consumables found.
Definition game_core.h:1116
char name[FIGHTER_NAME_BUFSIZE]
Name string.
Definition game_core.h:1084
char sprite[8][20]
Char matrix to hold the encoded sprite.
Definition game_core.h:1136
int turnboost_enr
Current temp boost value for enr.
Definition game_core.h:1109
int totalstamina
Full stamina value.
Definition game_core.h:1101
int totalxp
Lifetime xp value.
Definition game_core.h:1092
int equipboost_def
Current equip boost value for def.
Definition game_core.h:1128
int balance
Amount of currency owned.
Definition game_core.h:1134
int hp
Current hp value.
Definition game_core.h:1086
int currentlevelxp
Xp gained for the current level.
Definition game_core.h:1093
Specialslot * specials[SPECIALSMAX+1]
Array with all the Specialslot.
Definition game_core.h:1102
int totalenergy
Full energy value.
Definition game_core.h:1099
int totallevelxp
Xp needed to level up.
Definition game_core.h:1094
int perksCount
Keeps track of how many perks are active.
Definition game_core.h:1111
struct Equipslot * equipslots[EQUIPZONES+1]
Array with all the Equipslot.
Definition game_core.h:1114
int turnboost_atk
Current temp boost value for atk.
Definition game_core.h:1106
int stamina
Current stamina value.
Definition game_core.h:1100
Represents the entity initialised from a floorClass.
Definition game_core.h:1815
int explored_area
Holds how many cells we explored.
Definition game_core.h:1826
Room * rooms_matrix[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
Pointer matrix for rooms of this floor.
Definition game_core.h:1823
int area
Holds how many cells we succesfully random walked.
Definition game_core.h:1822
int index
The floor's own number.
Definition game_core.h:1817
roomClass roomclass_layout[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
roomClass matrix for class value for rooms of this floor.
Definition game_core.h:1824
int floor_layout[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
Defines the layout for the Floor (which cells are actually filled).
Definition game_core.h:1821
int explored_matrix[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
Int matrix for explored value for rooms of this floor.
Definition game_core.h:1825
bool from_bsp
Flag for floors generated using bsp.
Definition game_core.h:1827
char * desc
Description string.
Definition game_core.h:1818
Holds the base stats for a foePartyClass.
Definition game_core.h:1739
int level
Defines level of the FoeParty.
Definition game_core.h:1741
Represents the entity initialised from a foePartyClass.
Definition game_core.h:1715
int size
Number of members in the FoeParty.
Definition game_core.h:1726
int turnboost_enr
Current temp boost value for enr.
Definition game_core.h:1722
int alive_bosses[FOES_BOSSES_MAX+1]
Array of integers with 1 for alive bosses in that position.
Definition game_core.h:1730
int alive_enemies[ROOM_ENEMIES_MAX+1]
Array of integers with 1 for alive enemies in that position.
Definition game_core.h:1729
int current_index
Index of current foe advancement.
Definition game_core.h:1728
int turnboost_def
Current temp boost value for def.
Definition game_core.h:1720
int turnboost_atk
Current temp boost value for atk.
Definition game_core.h:1719
Enemy * enemy_foes[ROOM_ENEMIES_MAX+1]
Array of pointers to all enemies in a room.
Definition game_core.h:1723
int tot_alive
Number of alive members of the FoeParty.
Definition game_core.h:1727
int turnboost_vel
Current temp boost value for vel.
Definition game_core.h:1721
int level
Level for the whole FoeParty.
Definition game_core.h:1717
Boss * boss_foes[FOES_BOSSES_MAX+1]
Array of pointers to all enemies in a room.
Definition game_core.h:1725
struct Turncounter * counters[COUNTERSMAX+1]
Array with all the Turncounter pointers.
Definition game_core.h:1718
Holds options useful for user runtime preferences.
Definition game_core.h:191
HLPD_DirectionalKeys_Schema directional_keys_schema
Definition game_core.h:194
bool use_default_background
Definition game_core.h:192
bool do_autosave
Definition game_core.h:193
Holds arguments for a game.
Definition game_core.h:1889
int current_enemy_index
Keeps track of current enemy index.
Definition game_core.h:1899
Wincon * wincon
Keeps track of current Wincon.
Definition game_core.h:1900
GameOptions * options
Keeps track of current options.
Definition game_core.h:1919
bool is_seeded
Denotes if the current game was started with a set seed.
Definition game_core.h:1921
Path * path
Keeps track of current Path.
Definition game_core.h:1902
Floor * current_floor
Pointer to current floor, initialised when gamemode==Rogue.
Definition game_core.h:1908
int current_fighters
Keeps track of Fighter number for the game.
Definition game_core.h:1895
roomClass current_roomtype
Keeps track of current room type.
Definition game_core.h:1896
Fighter * player
Keeps track of current Player.
Definition game_core.h:1904
int current_room_index
Keeps track of current room index.
Definition game_core.h:1897
clock_t start_time
Keeps track of game start time.
Definition game_core.h:1891
Room * current_room
Pointer to current room.
Definition game_core.h:1909
countStats * stats
Keeps track of stats for the game.
Definition game_core.h:1893
Gamemode gamemode
Keeps track of current Gamemode.
Definition game_core.h:1906
Holds a set of HLPD_Key to use for cardinal direction movement.
Definition game_core.h:174
HLPD_Key down
Definition game_core.h:177
HLPD_Key left
Definition game_core.h:178
HLPD_Key up
Definition game_core.h:175
HLPD_Key right
Definition game_core.h:176
Holds info about a keybind for the game.
Definition game_core.h:137
int val
Definition game_core.h:138
Holds text for a notification.
Definition game_core.h:2216
bool displayed
Definition game_core.h:2219
int8_t color
Definition game_core.h:2218
char buf[NOTIFICATION_BUFFER_SIZE+1]
Definition game_core.h:2217
Holds the state of game progression.
Definition game_core.h:1347
Wincon * win_condition
Defines the win condition for the current game.
Definition game_core.h:1351
int luck
Defines global luck value.
Definition game_core.h:1349
int length
Defines how many rooms there are in total.
Definition game_core.h:1348
int64_t * rng_advancements
Pointer to current advancements for rng.
Definition game_core.h:1354
char seed[PATH_SEED_BUFSIZE+1]
Contains seed for current run.
Definition game_core.h:1353
int prize
Defines the reward for getting to length.
Definition game_core.h:1350
Saveslot * current_saveslot
Defines current Saveslot for the game.
Definition game_core.h:1352
Represents the entity initialised from a perkClass.
Definition game_core.h:1001
int innerValue
Contains an integer for perks that need a state.
Definition game_core.h:1005
char desc[50]
Description string.
Definition game_core.h:1004
char name[25]
Name string.
Definition game_core.h:1003
Represents the entity initialised from a roadforkClass.
Definition game_core.h:1637
roadforkOption options[2]
Defines which choices the fork has.
Definition game_core.h:1641
char * desc
Description string.
Definition game_core.h:1639
Represents the entity initialised from a roomClass.
Definition game_core.h:1760
int index
The room's own number.
Definition game_core.h:1762
Enemy * enemies[ROOM_ENEMIES_MAX]
Array for enemies.
Definition game_core.h:1772
Shop * shop
The shop pointer, initialised for rooms of class SHOP.
Definition game_core.h:1766
Boss * boss
The boss pointer, initialised for rooms of class BOSS.
Definition game_core.h:1770
char * desc
Description string.
Definition game_core.h:1763
int enemyTotal
Total number of enemies initialised in enemies array.
Definition game_core.h:1771
Treasure * treasure
The treasure pointer, initialised for rooms of class TREASURE.
Definition game_core.h:1768
FoeParty * foes
The FoeParty pointer, initialised for rooms of class ENEMIES.
Definition game_core.h:1773
Roadfork * roadfork
The roadfork pointer, initialised for rooms of class ROADFORK.
Definition game_core.h:1767
Holds arguments for a saveslot.
Definition game_core.h:400
char name[50]
Name string for the saveslot.
Definition game_core.h:401
char save_path[255]
Path to savefile.
Definition game_core.h:402
int index
Index of saveslot.
Definition game_core.h:403
Represents a shop instance.
Definition game_core.h:1493
int consumablesCount
Total number of consumables for sale, includes quantity for each kind of consumable.
Definition game_core.h:1502
Consumable * consumables[CONSUMABLE_SHOP_MAX]
Array for consumables on sale.
Definition game_core.h:1504
int itemCount
Total number of items for sale.
Definition game_core.h:1496
char * desc
Description string.
Definition game_core.h:1495
int consumablePrices[CONSUMABLE_SHOP_MAX]
Array for consumables prices.
Definition game_core.h:1505
int equipsCount
Total number of equips for sale.
Definition game_core.h:1498
Equip * equips[EQUIP_SHOP_MAX]
Array for equips on sale.
Definition game_core.h:1499
int uniqueConsumablesCount
Total of unique consumables for sale.
Definition game_core.h:1503
int equipPrices[EQUIP_SHOP_MAX]
Array for equips prices.
Definition game_core.h:1500
Holds state for a skillType.
Definition game_core.h:887
int cost
Cost of use.
Definition game_core.h:892
char desc[80]
Desc string.
Definition game_core.h:891
char name[80]
Name string.
Definition game_core.h:890
int enabled
Flag defining if the current slot is initialised.
Definition game_core.h:888
Holds state for a Fighter specials.
Definition game_core.h:841
specialMove move
Defines which kind of specialMove the slot is holding.
Definition game_core.h:843
char name[80]
Name string.
Definition game_core.h:844
int cost
Cost of use.
Definition game_core.h:846
int enabled
Flag defining if the current slot is initialised.
Definition game_core.h:842
char desc[80]
Desc string.
Definition game_core.h:845
Represents the entity initialised from a treasureClass.
Definition game_core.h:1593
Chest * chest
The treasure Chest, initialised if class == TREASURE_CHEST.
Definition game_core.h:1599
Artifact * artifact
The treasure Artifact, initialised if class == TREASURE_ARTIFACT.
Definition game_core.h:1601
Consumable * consumable
The treasure Consumable, initialised if class == TREASURE_CONSUMABLE.
Definition game_core.h:1600
char desc[80]
Description string.
Definition game_core.h:1595
Represents the entity initialised from a CounterType.
Definition game_core.h:1293
void(* boost_e_fun)(Enemy *, int)
Pointer to temp boost function applying to Enemy, takes a int.
Definition game_core.h:1303
void(* boost_fp_fun)(struct FoeParty *, int)
Pointer to temp boost function applying to FoeParty, takes a int.
Definition game_core.h:1305
void(* effect_fun)(Fighter *)
Pointer to effect function applying to Fighter.
Definition game_core.h:1298
int count
Defines the current count.
Definition game_core.h:1294
void(* effect_fp_fun)(struct FoeParty *)
Pointer to effect function applying to FoeParty.
Definition game_core.h:1301
Countertype type
Defines which kind of Countertype the instance relates to.
Definition game_core.h:1297
char * desc
Description string.
Definition game_core.h:1295
void(* effect_b_fun)(Boss *)
Pointer to effect function applying to Boss.
Definition game_core.h:1300
void(* boost_fun)(Fighter *, int)
Pointer to temp boost function applying to Fighter, takes a int.
Definition game_core.h:1302
void(* effect_e_fun)(Enemy *)
Pointer to effect function applying to Enemy.
Definition game_core.h:1299
int innerValue
Contains an integer for counters that need a state.
Definition game_core.h:1296
void(* boost_b_fun)(Boss *, int)
Pointer to temp boost function applying to Boss, takes a int.
Definition game_core.h:1304
Defines the entity initialised from a winconClass.
Definition game_core.h:1328
int current_val
Defines the current progress.
Definition game_core.h:1330
int target_val
Defines the total progress.
Definition game_core.h:1331
Holds the lifetime stats of the player.
Definition game_core.h:771
int enemieskilled
How many enemies were defeated.
Definition game_core.h:772
int coinsfound
How many coins you found in total.
Definition game_core.h:780
int roomscompleted
How many rooms were completed.
Definition game_core.h:777
int equipsfound
How many equips were found.
Definition game_core.h:774
int criticalhits
How many criticals were dealt.
Definition game_core.h:776
int consumablesfound
How many consumabls were found.
Definition game_core.h:773
int unique_bosseskilled
How many unique bosses were defeated.
Definition game_core.h:782
int artifactsfound
How many artifacts were found.
Definition game_core.h:775
int killed_bosses[BOSSCLASSESMAX+1]
Keeps track of which bossClass you've killed.
Definition game_core.h:783
int bosseskilled
How many bosses were defeated.
Definition game_core.h:781
int keysfound
How many keys you found in total.
Definition game_core.h:784
int specialsunlocked
How many special move were unlocked.
Definition game_core.h:779
int floorscompleted
How many floors were completed.
Definition game_core.h:778
Contains loaded values to pass to initRoom().
Definition game_core.h:1868
int total_foes
Definition game_core.h:1873
int done_loading
Definition game_core.h:1871
saveType save_type
Definition game_core.h:1877
Enemy * loaded_enemy
Definition game_core.h:1874
int * ptr_to_roomindex
Definition game_core.h:1876
int enemy_index
Definition game_core.h:1872
int * ptr_to_roomtotalenemies
Definition game_core.h:1875
int is_new_game
Definition game_core.h:1870
Holds arguments for a turnOption_OP.
Definition game_core.h:2094
Enemy * enemy
Pointer to Enemy for OP.
Definition game_core.h:2099
foeTurnOption_OP foe_op
Picked FoeTurnOption_OP, initialised only for some OPs.
Definition game_core.h:2114
loadInfo * load_info
Pointer to loadInfo for OP.
Definition game_core.h:2098
Path * path
Pointer to Rath for OP.
Definition game_core.h:2096
skillType picked_skill
Picked skillType, initialised only for OP_SKILL.
Definition game_core.h:2115
Fighter * actor
Pointer to Fighter actor for the OP.
Definition game_core.h:2095
FILE * save_file
Pointer to savefile for OP.
Definition game_core.h:2101
Boss * boss
Pointer to Boss for OP.
Definition game_core.h:2100
RingaBuf * rb_notifications
Pointer to RingaBuf for notifications for OP.
Definition game_core.h:2111
Koliseo_Temp * t_kls
Pointer to Koliseo_Temp for OP.
Definition game_core.h:2112
Room * room
Pointer to Room for OP.
Definition game_core.h:2097
Gamestate * gmst
Pointer to Gamestate for OP.
Definition game_core.h:2113