Adoranda/include/type.h

20 lines
412 B
C
Raw Normal View History

2022-05-03 00:40:09 +02:00
#pragma once
#include "define.h"
struct Type {
char* name;
const int id;
int buff[NB_TYPES+1];
int less[NB_TYPES+1];
int null[NB_TYPES+1];
};
struct Types {
struct Type *type[NB_TYPES];
};
bool parseArray(int array[], char *nom);
float getTypeEffect(struct Type atk, struct Type def);
struct Type getTypeFromName(char* name);
struct Type getTypeFromId(int id);
void drawTypeEffects(struct Type type);