-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpokemon.h
68 lines (57 loc) · 1.22 KB
/
pokemon.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: pokemon.h
* Author: lsdfusion
*
* Created on 10 March 2017, 14:03
*/
#ifndef POKEMON_H
#define POKEMON_H
#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#else
#include <GL/gl.h>
#endif
#include <vector>
#include "glm.h"
#include "mover.h"
#include "attack.h"
#include "explosion.h"
#include "portal.h"
/*
using namespace std;
*/
class Attack;
class Pokemon : public Mover {
public:
GLMmodel* model;
Attack* attacks;
Pokemon(double, char*);
virtual ~Pokemon();
virtual void draw();
void idle();
void collisionDetection();
virtual void attack(Pokemon*);
virtual void defend(bool) = 0;
virtual void die();
virtual void reborn();
virtual void block();
virtual void unblock();
virtual bool isAttacking();
virtual bool isDefending() = 0;
private:
/*
vector<vec3> vertexes;
vector<vec2> textures;
vector<vec3> normals;
vector<GLushort> faces;
*/
bool blocked;
Portal* portal;
vector<Explosion> particles;
};
#endif /* POKEMON_H */