helapordo 1.4.12
|
#include "game_fight.h"
Functions | |
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 returns the fightStatus value. | |
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 returns the fightStatus value. | |
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(). | |
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(). | |
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 and returns the fightStatus value. | |
int | boss_attack (Boss *b, Fighter *target, Path *p, Koliseo *kls, RingaBuf *rb_notifications) |
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(). | |
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(). | |
fightResult | do_Skill (Fighter *player, Enemy *e, skillType picked_skill, Koliseo *kls) |
fightResult | do_Skill_boss (Fighter *player, Boss *b, skillType picked_skill, Path *path, Koliseo *kls) |
int boss_attack | ( | Boss * | b, |
Fighter * | target, | ||
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 and returns the fightStatus value.
Queues notifications to the passed RingaBuf pointer. On boss death, we call dropConsumable, dropEquip and dropArtifact.
player | The Fighter pointer at hand. |
b | The Enemy pointer at hand. |
p | The Path pointer for the game. |
kls | The Koliseo used for allocations. |
rb_notifications | The RingaBuf used for notifications. |
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().
int defer_fight_enemy | ( | Fighter * | player, |
Enemy * | e, | ||
foeTurnOption_OP | foe_op, | ||
Koliseo * | kls, | ||
RingaBuf * | rb_notifications ) |
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().
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().
fightResult do_Skill | ( | Fighter * | player, |
Enemy * | e, | ||
skillType | picked_skill, | ||
Koliseo * | kls ) |
fightResult do_Skill_boss | ( | Fighter * | player, |
Boss * | b, | ||
skillType | picked_skill, | ||
Path * | path, | ||
Koliseo * | kls ) |
Takes an Enemy and a Fighter pointer and compares their stats to determine who gets damaged and returns the fightStatus value.
Queues notifications to the passed RingaBuf pointer. On enemy death, there's a chance to call dropConsumable, dropEquip or dropArtifact (guaranteed for beast enemies). NOTE: that the return values are always from the POV of the Fighter: FIGHTRES_DMG_DEALT means the Enemy was damaged!
target | The Fighter pointer at hand. |
e | The Enemy pointer at hand. |
kls | The Koliseo used for allocations. |
rb_notifications | The RingaBuf used for notifications. |
Takes a Fighter and a Enemy pointers and compares their stats to determine who gets damaged and returns the fightStatus value.
Queues notifications to the passed RingaBuf pointer. On enemy death, there's a chance to call dropConsumable, dropEquip or dropArtifact (guaranteed for beast enemies).
player | The Fighter pointer at hand. |
e | The Enemy pointer at hand. |
kls | The Koliseo used for allocations. |
rb_notifications | The RingaBuf used for notifications. |