/
Meteorito.h
50 lines (43 loc) · 1.07 KB
/
Meteorito.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
/*
* 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: Meteorito.h
* Author: raquel
*
* Created on 26 de marzo de 2018, 21:34
*/
#ifndef METEORITO_H
#define METEORITO_H
#include "Vector2f.h"
#include "Sprite.h"
#include "Texture.h"
#include "RenderWindow.h"
#include "NPC.h"
class Meteorito : public NPC{
public:
Meteorito();
Meteorito(const Meteorito& orig);
virtual ~Meteorito();
m2D::Sprite& returnShape();
void setTexture(m2D::Texture& texture);
void setCoord(int x, int y);
m2D::Vector2f& getCoord();
void move();
void draw();
void update();
bool getColisioned();
void setColisioned();
private:
//int tipo;
int vely; //velocidad de caida
int tipo; //tipo para indicar el tipo de trayectoria
int size; //0 peque, 1 grande
int rot; //velocidad de rotacion
bool colisioned;
m2D::Vector2f position;
m2D::Sprite sprite;
};
#endif /* METEORITO_H */