helapordo 1.4.12
Loading...
Searching...
No Matches
game_init.h
Go to the documentation of this file.
1// jgabaut @ github.com/jgabaut
2// SPDX-License-Identifier: GPL-3.0-only
3/*
4 Copyright (C) 2022-2024 jgabaut
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, version 3 of the License.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>.
17*/
18
19#ifndef GAME_INIT_H_
20#define GAME_INIT_H_
21
22#include "game_utils.h"
23#include "specials.h"
24
25#ifdef HELAPORDO_CURSES_BUILD
27#else
28#ifndef HELAPORDO_RAYLIB_BUILD
29#error "HELAPORDO_CURSES_BUILD and HELAPORDO_RAYLIB_BUILD are both undefined.\n"
30#else
31#include "../build-rl/game_rl.h"
32#endif // HELAPORDO_RAYLIB_BUILD
33#endif // HELAPORDO_CURSES_BUILD
34
35void initPerks(Fighter * f, Koliseo * kls);
36void initConsumableBag(Fighter * f, Koliseo * kls);
37
38void initCounters(Fighter * f, Koliseo * kls);
39void initECounters(Enemy * e, Koliseo_Temp * t_kls);
40void initBCounters(Boss * b, Koliseo_Temp * t_kls);
41void initFoePartyCounters(FoeParty * fp, Koliseo_Temp * t_kls);
42
43void initBossStats(Boss * b, Koliseo_Temp * t_kls);
44void prepareBoss(Boss * b, Koliseo_Temp * t_kls);
45
46void initFoePartyStats(FoeParty * fp, Koliseo_Temp * t_kls);
47void prepareFoeParty(FoeParty * fp, int total_foes, int roomindex,
48 Koliseo_Temp * t_kls);
49
50void initEquipSlots(Fighter * f, Koliseo * kls);
51
52void initArtifactsBag(Fighter * f, Koliseo * kls);
53
54void initEquipsBag(Fighter * f, Koliseo * kls);
55
56void initPlayerStats(Fighter * player, Path * path, Koliseo * kls);
57
58void initEnemyStats(Enemy * e, Koliseo_Temp * t_kls);
59void setSkills(Fighter *f, Koliseo *kls);
60void initChest(Chest * c, Fighter * f, Koliseo_Temp * t_kls);
61void initShop(Shop * s, int indexWeight, Fighter * player,
62 Koliseo_Temp * t_kls);
63void initTreasure(Treasure * t, Fighter * f, Koliseo_Temp * t_kls);
64void prepareChest(Chest * c, Fighter * f, Koliseo_Temp * t_kls);
65void prepareRoomEnemy(Enemy * e, int roomindex, int enemiesInRoom,
66 int enemyindex, Koliseo_Temp * t_kls);
67
68void prepareTreasure(Treasure * t, Fighter * f, Koliseo_Temp * t_kls);
69
71void setEnemySkills(Enemy *e, Koliseo_Temp *t_kls);
72void setBossSkills(Boss *b, Koliseo_Temp *t_kls);
73#endif // GAME_INIT_H_
void initEquipsBag(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its equipsBag field by allocating an Equip for each array slot.
Definition game_init.c:744
void setBossSkills(Boss *b, Koliseo_Temp *t_kls)
Takes a Boss pointer and prepares its skillSlot fields by allocating BOSS_SKILL_SLOTS slots.
Definition game_init.c:1830
void prepareBoss(Boss *b, Koliseo_Temp *t_kls)
Takes a Boss pointer and initialises all the fields making it ready for use in battle.
Definition game_init.c:1633
void initEquipSlots(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its equipslots field by allocating an Equipslot for each Equipzo...
Definition game_init.c:691
void prepareChest(Chest *c, Fighter *f, Koliseo_Temp *t_kls)
Takes a Chest and Fighter pointers and initialises all the fields in chest making it ready for use in...
Definition game_init.c:1607
void setEnemySkills(Enemy *e, Koliseo_Temp *t_kls)
Takes a Enemy pointer and prepares its skillSlot fields by allocating ENEMY_SKILL_SLOTS slots.
Definition game_init.c:1797
void prepareFoeParty(FoeParty *fp, int total_foes, int roomindex, Koliseo_Temp *t_kls)
Takes a FoeParty pointer, a size for complete party, and an integer for the current room index,...
Definition game_init.c:1053
void initPlayerStats(Fighter *player, Path *path, Koliseo *kls)
Takes one Fighter and one Path pointers and initialises the fighter fields.
Definition game_init.c:785
void initChest(Chest *c, Fighter *f, Koliseo_Temp *t_kls)
Takes a Chest and Fighter pointers and initialises all the fields in chest based on chest class and f...
Definition game_init.c:1116
void initEnemyStats(Enemy *e, Koliseo_Temp *t_kls)
Takes one Enemy pointer and initialises the enemy fields.
Definition game_init.c:879
void initArtifactsBag(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its artifactsBag field by allocating a Artifact for each artifac...
Definition game_init.c:714
void initConsumableBag(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its consumablesBag field by allocating a Consumable for each con...
Definition game_init.c:64
void prepareRoadfork(Roadfork *r)
Takes a Roadfork pointer and initialises all the fields making it ready for use in battle.
Definition game_init.c:1767
void setSkills(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its skillSlot fields by allocating FIGHTER_SKILL_SLOTS slots.
Definition game_init.c:1088
void initBossStats(Boss *b, Koliseo_Temp *t_kls)
Takes one Boss pointer and initialises the boss fields.
Definition game_init.c:935
void initTreasure(Treasure *t, Fighter *f, Koliseo_Temp *t_kls)
Takes a Treasure and Fighter pointers and initialises all the treasure fields based on its class and ...
Definition game_init.c:1520
void initFoePartyStats(FoeParty *fp, Koliseo_Temp *t_kls)
Takes one FoeParty pointer and initialises the party fields.
Definition game_init.c:986
void initFoePartyCounters(FoeParty *fp, Koliseo_Temp *t_kls)
Takes a FoeParty pointer and prepares its counters field by allocating all the Turncounter accounted ...
Definition game_init.c:547
void initECounters(Enemy *e, Koliseo_Temp *t_kls)
Takes a Enemy pointer and prepares its counters field by allocating all the Turncounter accounted in ...
Definition game_init.c:250
void initPerks(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its perks field by allocating all the Perk accounted in perkClas...
Definition game_init.c:30
void initShop(Shop *s, int indexWeight, Fighter *player, Koliseo_Temp *t_kls)
Takes one Shop pointer and initialises all the fields, depeding on stats from the Fighter pointer pas...
Definition game_init.c:1321
void prepareRoomEnemy(Enemy *e, int roomindex, int enemiesInRoom, int enemyindex, Koliseo_Temp *t_kls)
Takes a Enemy and three integers denoting current room index, how many enemies are in the room and cu...
Definition game_init.c:1679
void initCounters(Fighter *f, Koliseo *kls)
Takes a Fighter pointer and prepares its counters field by allocating all the Turncounter accounted i...
Definition game_init.c:102
void initBCounters(Boss *b, Koliseo_Temp *t_kls)
Takes a Boss pointer and prepares its counters field by allocating all the Turncounter accounted in c...
Definition game_init.c:399
void prepareTreasure(Treasure *t, Fighter *f, Koliseo_Temp *t_kls)
Takes a Treasure and Fighter pointer and initialises all the treasure fields making it ready for use ...
Definition game_init.c:1740
Represents the entity initialised from a bossClass.
Definition game_core.h:1190
Represents the entity initialised from a chestClass.
Definition game_core.h:1543
Represents the entity initialised from a enemyClass.
Definition game_core.h:1149
Represents the entity initialised from a fighterClass.
Definition game_core.h:1079
Represents the entity initialised from a foePartyClass.
Definition game_core.h:1711
Holds the state of game progression.
Definition game_core.h:1343
Represents the entity initialised from a roadforkClass.
Definition game_core.h:1633
Represents a shop instance.
Definition game_core.h:1489
Represents the entity initialised from a treasureClass.
Definition game_core.h:1589