-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcombat.c
20 lines (17 loc) · 915 Bytes
/
combat.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "include/combat.h"
#include "include/config.h"
#include "raylib.h"
void CombatWheelConstructor(CombatWheel *combatWheel){
combatWheel->options[Rock] = (WheelOption){Rock, "Rock", 0, 0, 0};
combatWheel->options[Fire] = (WheelOption){Fire, "Fire", 0, 0, 0};
combatWheel->options[Scissors] = (WheelOption){Scissors, "Scissors", 0, 0, 0};
combatWheel->options[Human] = (WheelOption){Human, "Human", 0, 0, 0};
combatWheel->options[Sponge] = (WheelOption){Sponge, "Sponge", 0, 0, 0};
combatWheel->options[Paper] = (WheelOption){Paper, "Paper", 0, 0, 0};
combatWheel->options[Air] = (WheelOption){Air, "Air", 0, 0, 0};
combatWheel->options[Water] = (WheelOption){Water, "Water", 0, 0, 0};
combatWheel->options[Gun] = (WheelOption){Gun, "Gun", 0, 0, 0};
}
int CheckActiveOption(CombatWheel *CombatWheel, Choice choice) {
return CombatWheel->options[choice].isActivated;
}