forked from jaildesigner-jailgames/jaildoctors_dilemma
49 lines
790 B
C++
49 lines
790 B
C++
#pragma once
|
|
|
|
#include <SDL2/SDL.h>
|
|
#include "const.h"
|
|
#include "utils/asset.h"
|
|
#include "utils/debug.h"
|
|
#include "utils/screen.h"
|
|
#include "utils/text.h"
|
|
#include "utils/utils.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#ifndef TEST_H
|
|
#define TEST_H
|
|
|
|
struct point_t
|
|
{
|
|
float x, y;
|
|
float vx, vy;
|
|
int dx, dy;
|
|
};
|
|
|
|
// Clase Test
|
|
class Test
|
|
{
|
|
private:
|
|
SDL_Renderer *renderer; // El renderizador de la ventana
|
|
Screen *screen; // Objeto encargado de dibujar en pantalla
|
|
Asset *asset; // Objeto con los ficheros de recursos
|
|
Debug *debug;
|
|
|
|
std::vector<point_t> points;
|
|
|
|
public:
|
|
// Constructor
|
|
Test(SDL_Renderer *renderer, Screen *screen, Asset *asset, Debug *debug);
|
|
|
|
// Destructor
|
|
~Test();
|
|
|
|
// Actualiza las variables
|
|
void update();
|
|
|
|
// Dibuja en pantalla
|
|
void render();
|
|
};
|
|
|
|
#endif
|