renombrades extensions .h a .hpp
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "explosions.h"
|
||||
#include "explosions.hpp"
|
||||
|
||||
#include <algorithm> // Para max
|
||||
|
||||
#include "animated_sprite.h" // Para AnimatedSprite
|
||||
#include "animated_sprite.hpp" // Para AnimatedSprite
|
||||
|
||||
class Texture; // lines 4-4
|
||||
|
||||
// Actualiza la lógica de la clase (time-based)
|
||||
void Explosions::update(float deltaTime) {
|
||||
for (auto &explosion : explosions_) {
|
||||
for (auto& explosion : explosions_) {
|
||||
explosion->update(deltaTime);
|
||||
}
|
||||
|
||||
@@ -18,13 +18,13 @@ void Explosions::update(float deltaTime) {
|
||||
|
||||
// Dibuja el objeto en pantalla
|
||||
void Explosions::render() {
|
||||
for (auto &explosion : explosions_) {
|
||||
for (auto& explosion : explosions_) {
|
||||
explosion->render();
|
||||
}
|
||||
}
|
||||
|
||||
// Añade texturas al objeto
|
||||
void Explosions::addTexture(int size, const std::shared_ptr<Texture> &texture, const std::vector<std::string> &animation) {
|
||||
void Explosions::addTexture(int size, const std::shared_ptr<Texture>& texture, const std::vector<std::string>& animation) {
|
||||
textures_.emplace_back(size, texture, animation);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user