-
Notifications
You must be signed in to change notification settings - Fork 0
/
Asteroide.h
41 lines (34 loc) · 905 Bytes
/
Asteroide.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
/*
* 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: Asteroide.h
* Author: gabriel
*
* Created on 2 de junio de 2018, 14:52
*/
#ifndef ASTEROIDE_H
#define ASTEROIDE_H
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Sprite.hpp>
class Asteroide {
public:
Asteroide(sf::Texture &texturaNave,int velocidad);
void Mostrar(sf::RenderWindow &window);
void ActualizarPosicion();
void verificarExistencia(int indice,std::vector<Asteroide> &vector);
sf::Sprite getSprite();
void setVelocidad(int velocidad);
private:
void generarOrigen();
// sf::Texture texturaNave;
sf::Sprite spriteNave;
int movimientoX;
int y;
int x;
int movimientoY;
int randomSeed=0;
};
#endif /* ASTEROIDE_H */