Afegides utilitats per a linux
Arreglats alguns includes
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "balloon.h"
|
||||
#include <math.h> // for abs
|
||||
#include "animated_sprite.h" // for AnimatedSprite
|
||||
#include "moving_sprite.h" // for MovingSprite
|
||||
#include "param.h" // for param
|
||||
#include "sprite.h" // for Sprite
|
||||
#include "texture.h" // for Texture
|
||||
#include <math.h> // for abs
|
||||
#include "animated_sprite.h" // for AnimatedSprite
|
||||
#include "moving_sprite.h" // for MovingSprite
|
||||
#include "param.h" // for param
|
||||
#include "sprite.h" // for Sprite
|
||||
#include "texture.h" // for Texture
|
||||
|
||||
// Constructor
|
||||
Balloon::Balloon(float x, float y, Uint8 kind, float velx, float speed, Uint16 creationtimer, Texture *texture, std::vector<std::string> *animation)
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
|
||||
#include <SDL2/SDL_rect.h> // for SDL_Rect
|
||||
#include <SDL2/SDL_stdinc.h> // for Uint8
|
||||
#include <memory> // for unique_ptr
|
||||
#include "sprite.h" // for Sprite
|
||||
#include "utils.h" // for circle_t
|
||||
#include <memory> // for std::unique_ptr
|
||||
|
||||
class Sprite;
|
||||
class Texture;
|
||||
class Texture; // lines 9-9
|
||||
|
||||
// Enumeración para los diferentes tipos de balas
|
||||
enum class BulletType
|
||||
|
||||
@@ -7,24 +7,24 @@
|
||||
#include <vector> // for vector
|
||||
#include "section.h" // for options_e
|
||||
#include "utils.h" // for demoKeys_t, color_t, hiScoreEntry_t
|
||||
#include "bullet.h"
|
||||
class Asset;
|
||||
class Background;
|
||||
class Balloon;
|
||||
class Bullet;
|
||||
class EnemyFormations;
|
||||
class Explosions;
|
||||
class Fade;
|
||||
class Input;
|
||||
class Item;
|
||||
class Player;
|
||||
class Scoreboard;
|
||||
class Screen;
|
||||
class SmartSprite;
|
||||
class Text;
|
||||
class Texture;
|
||||
struct JA_Music_t;
|
||||
struct JA_Sound_t;
|
||||
class Asset; // lines 11-11
|
||||
class Background; // lines 12-12
|
||||
class Balloon; // lines 13-13
|
||||
class Bullet; // lines 14-14
|
||||
class EnemyFormations; // lines 15-15
|
||||
class Explosions; // lines 16-16
|
||||
class Fade; // lines 17-17
|
||||
class Input; // lines 18-18
|
||||
class Item; // lines 19-19
|
||||
class Player; // lines 20-20
|
||||
class Scoreboard; // lines 21-21
|
||||
class Screen; // lines 22-22
|
||||
class SmartSprite; // lines 23-23
|
||||
class Text; // lines 24-24
|
||||
class Texture; // lines 25-25
|
||||
enum class BulletType;
|
||||
struct JA_Music_t; // lines 26-26
|
||||
struct JA_Sound_t; // lines 27-27
|
||||
|
||||
#define GAME_MODE_DEMO_OFF false
|
||||
#define GAME_MODE_DEMO_ON true
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
#include "utils.h"
|
||||
#include <stdlib.h> // for free, malloc
|
||||
struct JA_Music_t;
|
||||
struct JA_Sound_t;
|
||||
#include <stdlib.h> // for free, malloc
|
||||
#include <algorithm> // for max, min
|
||||
#include <cctype> // for isspace
|
||||
#include <iterator> // for distance
|
||||
struct JA_Music_t; // lines 3-3
|
||||
struct JA_Sound_t; // lines 4-4
|
||||
|
||||
// Colores
|
||||
const color_t bgColor = {0x27, 0x27, 0x36};
|
||||
|
||||
Reference in New Issue
Block a user