helapordo 1.4.12
Loading...
Searching...
No Matches
game_fight.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_FIGHT_H_
20#define GAME_FIGHT_H_
21
22#include "game_utils.h"
23
24int defer_fight_enemy(Fighter * player, Enemy * e, foeTurnOption_OP foe_op,
25 Koliseo * kls, RingaBuf* rb_notifications);
26int defer_skill_enemy(Fighter *player, Enemy *e, skillType picked_skill, foeTurnOption_OP foe_op,
27 Koliseo * kls, RingaBuf* rb_notifications);
28
29int fight(Fighter * player, Enemy * e, Koliseo * kls, RingaBuf* rb_notifications);
30
31int enemy_attack(Enemy * e, Fighter * target,
32 Koliseo * kls, RingaBuf* rb_notifications);
33
34int defer_fight_boss(Fighter * player, Boss * b, Path * p,
35 foeTurnOption_OP foe_op,
36 Koliseo * kls, RingaBuf* rb_notifications);
37
38int defer_skill_boss(Fighter *player, Boss *b, skillType picked_skill, Path *p, foeTurnOption_OP foe_op,
39 Koliseo *kls, RingaBuf* rb_notifications);
40
41int boss_fight(Fighter * player, Boss * b, Path * p,
42 Koliseo * kls, RingaBuf* rb_notifications);
43
44int boss_attack(Boss * b, Fighter * target, Path * p,
45 Koliseo * kls, RingaBuf* rb_notifications);
46fightResult do_Skill(Fighter * player, Enemy * e, skillType picked_skill, Koliseo * kls);
47fightResult do_Skill_boss(Fighter * player, Boss * b, skillType picked_skill, Path * path, Koliseo * kls);
48
49#endif // GAME_FIGHT_H_
foeTurnOption_OP
The different kinds of foeTurnOption_OP.
Definition game_core.h:2016
skillType
Definition game_core.h:845
fightResult
The different kinds of fightResult.
Definition game_core.h:2159
int defer_skill_enemy(Fighter *player, Enemy *e, skillType picked_skill, foeTurnOption_OP foe_op, Koliseo *kls, RingaBuf *rb_notifications)
Takes a Fighter and a Enemy pointers and calls do_Skill().
Definition game_fight.c:827
int boss_attack(Boss *b, Fighter *target, Path *p, Koliseo *kls, RingaBuf *rb_notifications)
Definition game_fight.c:1308
int fight(Fighter *player, Enemy *e, Koliseo *kls, RingaBuf *rb_notifications)
Takes a Fighter and a Enemy pointers and compares their stats to determine who gets damaged and retur...
Definition game_fight.c:38
int defer_fight_boss(Fighter *player, Boss *b, Path *p, foeTurnOption_OP foe_op, Koliseo *kls, RingaBuf *rb_notifications)
Takes a Fighter and a Boss pointers and calls boss_fight().
Definition game_fight.c:1610
fightResult do_Skill_boss(Fighter *player, Boss *b, skillType picked_skill, Path *path, Koliseo *kls)
Definition game_fight.c:1937
fightResult do_Skill(Fighter *player, Enemy *e, skillType picked_skill, Koliseo *kls)
Definition game_fight.c:1931
int defer_fight_enemy(Fighter *player, Enemy *e, foeTurnOption_OP foe_op, Koliseo *kls, RingaBuf *rb_notifications)
Takes a Fighter and a Enemy pointers and calls fight().
Definition game_fight.c:638
int defer_skill_boss(Fighter *player, Boss *b, skillType picked_skill, Path *p, foeTurnOption_OP foe_op, Koliseo *kls, RingaBuf *rb_notifications)
Takes a Fighter and a Boss pointers and calls do_Skill_boss().
Definition game_fight.c:1777
int enemy_attack(Enemy *e, Fighter *target, Koliseo *kls, RingaBuf *rb_notifications)
Takes an Enemy and a Fighter pointer and compares their stats to determine who gets damaged and retur...
Definition game_fight.c:332
int boss_fight(Fighter *player, Boss *b, Path *p, Koliseo *kls, RingaBuf *rb_notifications)
Takes a Fighter, a Boss and a Path pointers and compares fighters stats to determine who gets damaged...
Definition game_fight.c:1023
Represents the entity initialised from a bossClass.
Definition game_core.h:1190
Represents the entity initialised from a enemyClass.
Definition game_core.h:1149
Represents the entity initialised from a fighterClass.
Definition game_core.h:1079
Holds the state of game progression.
Definition game_core.h:1343