-
Notifications
You must be signed in to change notification settings - Fork 0
/
includes.h
33 lines (25 loc) · 1.05 KB
/
includes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef INCLUDES_H
#define INCLUDES_H
#define N_TECLAS 52
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_acodec.h>
#include <string>
#include <iostream>
#include <ctime>
#include <cmath>
using namespace std;
enum teclas{A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
K0, K1, K2, K3, K4, K5, K6, K7, K8, K9, ESC, TAB, CAPSLOCK, LSHIFT, RSHIFT, ALT, ALTGR, LCTRL, RCTRL, SPACE, ENTER, BACKSPACE,
UP, DOWN, LEFT, RIGHT};
enum classes{guerreiro, mago, arqueiro, barbaro, caracolaladofaminto, onigiri};
enum itens{pocao, runa, gema};
enum projetil{flecha, magia, runaPoder, laser};
enum estados{menu, instrucoes, escolhaClasse, escolhaCenario, jogando, gameOver};
bool verificaColisao(double x1, double y1, double w1, double h1, double x2, double y2, double w2, double h2);
int aleatorio(int min, int max);
#endif