migrant a SDL3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL_rect.h> // Para SDL_Rect
|
||||
#include <SDL3/SDL_rect.h> // Para SDL_FRect
|
||||
#include <SDL3/SDL_stdinc.h> // Para Uint16
|
||||
#include <memory> // Para shared_ptr, unique_ptr
|
||||
#include <string> // Para string
|
||||
@@ -51,7 +51,7 @@ private:
|
||||
ItemType type_; /**< Especifica el tipo de objeto que es */
|
||||
bool enabled_ = true; /**< Especifica si el objeto está habilitado */
|
||||
Circle collider_; /**< Círculo de colisión del objeto */
|
||||
SDL_Rect play_area_; /**< Rectángulo con la zona de juego */
|
||||
SDL_FRect play_area_; /**< Rectángulo con la zona de juego */
|
||||
Uint16 time_to_live_ = 600; /**< Temporizador con el tiempo que el objeto está presente */
|
||||
|
||||
/**
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
* @param texture La textura del objeto.
|
||||
* @param animation La animación asociada al objeto.
|
||||
*/
|
||||
Item(ItemType type, float x, float y, SDL_Rect &play_area, std::shared_ptr<Texture> texture, const std::vector<std::string> &animation);
|
||||
Item(ItemType type, float x, float y, SDL_FRect &play_area, std::shared_ptr<Texture> texture, const std::vector<std::string> &animation);
|
||||
|
||||
/**
|
||||
* @brief Destructor de la clase Item.
|
||||
|
||||
Reference in New Issue
Block a user