Completada la classe PathSprite
This commit is contained in:
@@ -17,6 +17,7 @@ class Explosions;
|
||||
class Fade;
|
||||
class Input;
|
||||
class Item;
|
||||
class PathSprite;
|
||||
class Scoreboard;
|
||||
class Screen;
|
||||
class SmartSprite;
|
||||
@@ -129,6 +130,7 @@ private:
|
||||
std::vector<std::unique_ptr<Bullet>> bullets_; // Vector con las balas
|
||||
std::vector<std::unique_ptr<Item>> items_; // Vector con los items
|
||||
std::vector<std::unique_ptr<SmartSprite>> smart_sprites_; // Vector con los smartsprites
|
||||
std::vector<std::unique_ptr<PathSprite>> path_sprites_; // Vector con los smartsprites
|
||||
|
||||
std::shared_ptr<Texture> bullet_texture_; // Textura para las balas
|
||||
std::vector<std::shared_ptr<Texture>> item_textures_; // Vector con las texturas de los items
|
||||
@@ -305,17 +307,29 @@ private:
|
||||
// Crea un objeto SpriteSmart
|
||||
void createItemScoreSprite(int x, int y, std::shared_ptr<Texture> texture);
|
||||
|
||||
// Crea un objeto PathSprite
|
||||
void createPathSprite(SDL_Point x, SDL_Point y, std::shared_ptr<Texture> texture);
|
||||
|
||||
// Vacia el vector de smartsprites
|
||||
void freeSpriteSmarts();
|
||||
void freeSmartSprites();
|
||||
|
||||
// Vacia el vector de pathsprites
|
||||
void freePathSprites();
|
||||
|
||||
// Crea un SpriteSmart para arrojar el item café al recibir un impacto
|
||||
void throwCoffee(int x, int y);
|
||||
|
||||
// Actualiza los SpriteSmarts
|
||||
void updateSpriteSmarts();
|
||||
void updateSmartSprites();
|
||||
|
||||
// Pinta los SpriteSmarts activos
|
||||
void renderSpriteSmarts();
|
||||
void renderSmartSprites();
|
||||
|
||||
// Actualiza los PathSprites
|
||||
void updatePathSprites();
|
||||
|
||||
// Pinta los PathSprites activos
|
||||
void renderPathSprites();
|
||||
|
||||
// Acciones a realizar cuando el jugador muere
|
||||
void killPlayer(std::shared_ptr<Player> &player);
|
||||
|
||||
Reference in New Issue
Block a user