forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya sube las rampas. Aun queda por acabar
This commit is contained in:
48
source/test.h
Normal file
48
source/test.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include "const.h"
|
||||
#include "utils.h"
|
||||
#include "screen.h"
|
||||
#include "asset.h"
|
||||
#include "text.h"
|
||||
#include "debug.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user