Pasaeta de include-what-you-use

Afegit fitxer CMakeLists.txt
This commit is contained in:
2025-02-21 12:02:39 +01:00
parent a08da3b983
commit 788aec0dab
50 changed files with 385 additions and 196 deletions

View File

@@ -1,4 +1,30 @@
#include "game.h"
#include <SDL2/SDL_error.h> // for SDL_GetError
#include <SDL2/SDL_rwops.h> // for SDL_RWFromFile, SDL_RWclose, SDL_RWwrite
#include <SDL2/SDL_timer.h> // for SDL_GetTicks, SDL_Delay
#include <SDL2/SDL_video.h> // for SDL_WINDOWEVENT_FOCUS_LOST
#include <stdlib.h> // for rand
#include <algorithm> // for max, min
#include <fstream> // for basic_ifstream
#include <iostream> // for basic_ostream, char_traits, operator<<
#include "asset.h" // for Asset
#include "balloon.h" // for Balloon, BALLOON_VELX_NEGATIVE, BALLOON_...
#include "bullet.h" // for Bullet, BULLET_LEFT, BULLET_RIGHT, BULLE...
#include "const.h" // for PLAY_AREA_CENTER_X, BLOCK, PLAY_AREA_CEN...
#include "fade.h" // for Fade, FADE_CENTER
#include "input.h" // for inputs_e, Input, REPEAT_TRUE, REPEAT_FALSE
#include "item.h" // for Item, ITEM_COFFEE_MACHINE, ITEM_CLOCK
#include "jail_audio.h" // for JA_PlaySound, JA_DeleteSound, JA_LoadSound
#include "lang.h" // for Lang
#include "menu.h" // for Menu
#include "movingsprite.h" // for MovingSprite
#include "player.h" // for Player, DEATH_COUNTER
#include "screen.h" // for Screen
#include "smartsprite.h" // for SmartSprite
#include "sprite.h" // for Sprite
#include "text.h" // for Text, TXT_CENTER
#include "texture.h" // for Texture
struct JA_Sound_t;
// Constructor
Game::Game(int numPlayers, int currentStage, SDL_Renderer *renderer, Screen *screen, Asset *asset, Lang *lang, Input *input, bool demo, options_t *options, section_t *section)