Intentando arreglar los include para evitar duplicate symbols

This commit is contained in:
2022-10-20 16:52:52 +02:00
parent e256ac9d89
commit 11ec100878
12 changed files with 12 additions and 36 deletions

View File

@@ -1,9 +1,9 @@
#pragma once
#include "struct.h"
#include "sprite.h"
#include "const.h"
#include "globals.h"
#include "globals2.h"
#ifndef BALLOON_H
#define BALLOON_H

View File

@@ -1,9 +1,9 @@
#pragma once
#include "struct.h"
#include "sprite.h"
#include "const.h"
#include "globals.h"
#include "globals2.h"
#ifndef BULLET_H
#define BULLET_H

View File

@@ -1,7 +1,5 @@
#pragma once
#include <SDL2/SDL.h>
#ifndef CONST_H
#define CONST_H
@@ -105,7 +103,4 @@ const int BUTTON_START = 11;
const int BUTTON_L = 6;
const int BUTTON_R = 7;
//Estado del teclado SDL
//const Uint8 *keystates;
#endif

View File

@@ -8,7 +8,6 @@
#include "ltexture.h"
#include "menu.h"
#include "player.h"
#include "struct.h"
#include "text.h"
#ifndef GAMEDIRECTOR_H

View File

@@ -7,6 +7,14 @@
#ifndef GLOBALS_H
#define GLOBALS_H
//Estructura para definir un circulo
struct Circle
{
Uint16 x;
Uint16 y;
Uint8 r;
};
//La ventana donde dibujamos
SDL_Window *gWindow = NULL;

View File

@@ -1,9 +1,7 @@
#pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "const.h"
#include "globals2.h"
#include "globals.h"
#include <stdio.h>
#include <string>

View File

@@ -37,9 +37,6 @@ un tipo asociado diferente a NO_KIND
*/
#define TEST_
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include "background.h"
#include "balloon.h"
#include "bullet.h"
@@ -52,7 +49,6 @@ un tipo asociado diferente a NO_KIND
#include "player.h"
#include "sprite.h"
#include "spriteanimated.h"
#include "struct.h"
#include "text.h"
#include <iostream>
#include <stdio.h>

View File

@@ -3,6 +3,7 @@
#include "sprite.h"
#include "const.h"
#include "globals.h"
#include "globals2.h"
#include "text.h"
#ifndef MENU_H

View File

@@ -1,6 +1,5 @@
#pragma once
#include "struct.h"
#include "spriteanimated.h"
#include "const.h"
#include "globals.h"

View File

@@ -1,7 +1,5 @@
#pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "ltexture.h"
#ifndef SPRITE_H

View File

@@ -1,7 +1,5 @@
#pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "sprite.h"
#include "const.h"
#include <iostream>

View File

@@ -1,16 +0,0 @@
#pragma once
#include <SDL2/SDL.h>
#ifndef STRUCT_H
#define STRUCT_H
//Estructura para definir un circulo
struct Circle
{
Uint16 x;
Uint16 y;
Uint8 r;
};
#endif