forked from jaildesigner-jailgames/jaildoctors_dilemma
corregides cridades a SDL3 i migrat casi tot de int a float. Falta jail_shader
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
|
||||
#include <memory> // Para shared_ptr
|
||||
#include <string> // Para string
|
||||
#include <vector> // Para vector
|
||||
@@ -187,52 +186,52 @@ class Room {
|
||||
std::string getRoom(RoomBorder border);
|
||||
|
||||
// Devuelve el tipo de tile que hay en ese pixel
|
||||
TileType getTile(SDL_Point point);
|
||||
TileType getTile(SDL_FPoint point);
|
||||
|
||||
// Indica si hay colision con un enemigo a partir de un rectangulo
|
||||
bool enemyCollision(SDL_Rect& rect);
|
||||
bool enemyCollision(SDL_FRect& rect);
|
||||
|
||||
// Indica si hay colision con un objeto a partir de un rectangulo
|
||||
bool itemCollision(SDL_Rect& rect);
|
||||
bool itemCollision(SDL_FRect& rect);
|
||||
|
||||
// Obten el tamaño del tile
|
||||
int getTileSize() const { return TILE_SIZE_; }
|
||||
|
||||
// Obten la coordenada de la cuesta a partir de un punto perteneciente a ese tile
|
||||
int getSlopeHeight(SDL_Point p, TileType slope);
|
||||
int getSlopeHeight(SDL_FPoint p, TileType slope);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkRightSurfaces(SDL_Rect* rect);
|
||||
int checkRightSurfaces(SDL_FRect* rect);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkLeftSurfaces(SDL_Rect* rect);
|
||||
int checkLeftSurfaces(SDL_FRect* rect);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkTopSurfaces(SDL_Rect* rect);
|
||||
int checkTopSurfaces(SDL_FRect* rect);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkBottomSurfaces(SDL_Rect* rect);
|
||||
int checkBottomSurfaces(SDL_FRect* rect);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkAutoSurfaces(SDL_Rect* rect);
|
||||
int checkAutoSurfaces(SDL_FRect* rect);
|
||||
|
||||
// Comprueba las colisiones
|
||||
bool checkTopSurfaces(SDL_Point* p);
|
||||
bool checkTopSurfaces(SDL_FPoint* p);
|
||||
|
||||
// Comprueba las colisiones
|
||||
bool checkAutoSurfaces(SDL_Point* p);
|
||||
bool checkAutoSurfaces(SDL_FPoint* p);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkLeftSlopes(const LineVertical* line);
|
||||
|
||||
// Comprueba las colisiones
|
||||
bool checkLeftSlopes(SDL_Point* p);
|
||||
bool checkLeftSlopes(SDL_FPoint* p);
|
||||
|
||||
// Comprueba las colisiones
|
||||
int checkRightSlopes(const LineVertical* line);
|
||||
|
||||
// Comprueba las colisiones
|
||||
bool checkRightSlopes(SDL_Point* p);
|
||||
bool checkRightSlopes(SDL_FPoint* p);
|
||||
|
||||
// Pone el mapa en modo pausa
|
||||
void setPaused(bool value) { is_paused_ = value; };
|
||||
|
||||
Reference in New Issue
Block a user