mirror of https://github.com/bgiraudr/Adoranda.git
27 lines
674 B
C
27 lines
674 B
C
#pragma once
|
|
#include "stats.h"
|
|
|
|
struct Move {
|
|
char *name;
|
|
int init_pp;
|
|
int pp;
|
|
int atk;
|
|
};
|
|
|
|
struct Capacities {
|
|
int nbCapacities;
|
|
struct Move *moves[];
|
|
};
|
|
|
|
struct Move default_move();
|
|
struct Move get_move_id(int id);
|
|
void draw_move(int x, int y, int x2, int y2, struct Move *move);
|
|
void draw_classic_move(int x, int y, struct Move *move);
|
|
void execute_move(struct Stats *player_stats, struct Stats *monster_stats, struct Move *move, int ismonster);
|
|
int calc_damage(struct Stats *attacker, struct Stats *target, struct Move *move);
|
|
struct Move *copy_move(struct Move move);
|
|
|
|
struct Move *get_move_id_pointer(int id);
|
|
|
|
float crit(struct Stats *attacker);
|
|
int is_crit(); |