Decouple <vector>

This commit is contained in:
Martin Natano
2023-04-21 22:13:41 +02:00
parent aa87f85eef
commit bacecae1f7
422 changed files with 2326 additions and 1295 deletions
+2
View File
@@ -7,6 +7,8 @@
#include "PlayerOptions.h"
#include "PlayerState.h"
#include <vector>
ActiveAttackList::ActiveAttackList()
{
}
+1
View File
@@ -17,6 +17,7 @@
#include <cmath>
#include <cstddef>
#include <typeinfo>
#include <vector>
static Preference<bool> g_bShowMasks("ShowMasks", false);
static const float default_effect_period= 1.0f;
+2 -1
View File
@@ -6,7 +6,6 @@
#include "RageUtil_AutoPtr.h"
#include "LuaReference.h"
#include "EnumHelper.h"
#include <map>
class XNode;
struct lua_State;
class LuaClass;
@@ -14,6 +13,8 @@ class LuaClass;
#include "Tween.h"
#include <cstddef>
#include <map>
#include <vector>
typedef AutoPtrCopyOnWrite<LuaReference> apActorCommands;
+1 -1
View File
@@ -11,7 +11,7 @@
#include "ScreenDimensions.h"
#include <cstdint>
#include <vector>
/* Tricky: We need ActorFrames created in Lua to auto delete their children.
* We don't want classes that derive from ActorFrame to auto delete their
+2
View File
@@ -3,6 +3,8 @@
#include "Actor.h"
#include <vector>
/** @brief A container for other Actors. */
class ActorFrame : public Actor
{
+2
View File
@@ -6,6 +6,8 @@
#include "Actor.h"
#include "RageDisplay.h"
#include <vector>
class RageTexture;
class ActorMultiTexture: public Actor
+1
View File
@@ -16,6 +16,7 @@
#include <cstddef>
#include <cstdint>
#include <numeric>
#include <vector>
const float min_state_delay= 0.0001f;
+1
View File
@@ -7,6 +7,7 @@
#include "RageTextureID.h"
#include <cstddef>
#include <vector>
enum DrawMode
{
+1
View File
@@ -9,6 +9,7 @@
#include "LuaBinding.h"
#include <cmath>
#include <vector>
/* Tricky: We need ActorFrames created in Lua to auto delete their children.
* We don't want classes that derive from ActorFrame to auto delete their
+2
View File
@@ -16,6 +16,8 @@
#include "arch/Dialog/Dialog.h"
#include <vector>
// Actor registration
static std::map<RString,CreateActorFn> *g_pmapRegistrees = nullptr;
+2
View File
@@ -4,6 +4,8 @@
#include "Actor.h"
#include "RageTexture.h"
#include <vector>
class XNode;
typedef Actor* (*CreateActorFn)();
+1
View File
@@ -44,6 +44,7 @@
#include <cmath>
#include <cstddef>
#include <vector>
std::vector<TimingData> AdjustSync::s_vpTimingDataOriginal;
+2
View File
@@ -1,6 +1,8 @@
#ifndef AdjustSync_H
#define AdjustSync_H
#include <vector>
class TimingData;
/**
* @brief Allows for adjusting the sync of a song.
+3
View File
@@ -3,7 +3,10 @@
#include "RageLog.h"
#include "RageUtil.h"
#include "RageFile.h"
#include <cstring>
#include <vector>
AnnouncerManager* ANNOUNCER = nullptr; // global and accessible from anywhere in our program
+4
View File
@@ -2,6 +2,10 @@
#define ANNOUNCER_MANAGER_H
#include "RageTypes.h"
#include <vector>
/** @brief The commentators who say seemlingly random things during gameplay. */
class AnnouncerManager
{
+2
View File
@@ -16,6 +16,8 @@
#include <cfloat>
#include <cmath>
#include <cstddef>
#include <vector>
static char const dimension_names[4]= "XYZ";
+2
View File
@@ -7,6 +7,8 @@
#include "PlayerState.h"
#include <cmath>
#include <vector>
void Attack::GetAttackBeats( const Song *pSong, float &fStartBeat, float &fEndBeat ) const
{
+4
View File
@@ -5,6 +5,10 @@
#include "GameConstantsAndTypes.h"
#include "PlayerNumber.h"
#include <vector>
class Song;
class PlayerState;
/** @brief An action made against a Player to make things more difficult. */
+2
View File
@@ -31,6 +31,8 @@
#include "RageLog.h"
#include "RageSoundReader_FileReader.h"
#include <vector>
void AutoKeysounds::Load( PlayerNumber pn, const NoteData& ndAutoKeysoundsOnly )
{
+3
View File
@@ -5,6 +5,9 @@
#include "PlayerNumber.h"
#include "RageSound.h"
#include <vector>
class RageSoundReader;
class RageSoundReader_Chain;
class Song;
+3
View File
@@ -8,6 +8,9 @@
#include "LuaManager.h"
#include "PrefsManager.h"
#include <vector>
REGISTER_ACTOR_CLASS(BGAnimation);
BGAnimation::BGAnimation()
+3
View File
@@ -3,7 +3,10 @@
#include "GameConstantsAndTypes.h"
#include "ActorFrame.h"
#include <map>
#include <vector>
class XNode;
+3 -1
View File
@@ -12,7 +12,9 @@
#include "Steps.h"
#include <cmath>
#include <limits.h>
#include <climits>
#include <vector>
REGISTER_ACTOR_CLASS( BPMDisplay );
+4
View File
@@ -5,6 +5,10 @@
#include "AutoActor.h"
#include "ThemeMetric.h"
#include "LocalizedString.h"
#include <vector>
class Song;
class Steps;
class Course;
+2
View File
@@ -24,6 +24,8 @@
#include "AutoActor.h"
#include <cfloat>
#include <vector>
static ThemeMetric<float> LEFT_EDGE ("Background","LeftEdge");
static ThemeMetric<float> TOP_EDGE ("Background","TopEdge");
+3
View File
@@ -6,6 +6,9 @@
#include "PlayerNumber.h"
#include "BackgroundUtil.h"
#include <vector>
class DancingCharacters;
class Song;
class BackgroundImpl;
+3 -1
View File
@@ -5,11 +5,13 @@
#include "IniFile.h"
#include "RageLog.h"
#include <set>
#include "Background.h"
#include "RageFileManager.h"
#include "ActorUtil.h"
#include <set>
#include <vector>
bool BackgroundDef::operator<( const BackgroundDef &other ) const
{
+3
View File
@@ -1,6 +1,9 @@
#ifndef BackgroundUtil_H
#define BackgroundUtil_H
#include <vector>
class Song;
class XNode;
+1
View File
@@ -12,6 +12,7 @@
#include <cmath>
#include <cstddef>
#include <vector>
REGISTER_ACTOR_CLASS( BitmapText );
+2
View File
@@ -5,6 +5,8 @@
#include <cstddef>
#include <map>
#include <vector>
class RageTexture;
class Font;
+3
View File
@@ -5,6 +5,9 @@
#include "RageTextureID.h"
#include "ActorUtil.h"
#include <vector>
RString GetRandomFileInDir( RString sDir );
Character::Character(): m_sCharDir(""), m_sCharacterID(""),
+3
View File
@@ -5,6 +5,9 @@
#include "LuaManager.h"
#include <vector>
#define CHARACTERS_DIR "/Characters/"
CharacterManager* CHARMAN = nullptr; // global object accessible from anywhere in the program
+3
View File
@@ -1,6 +1,9 @@
#ifndef CHARACTER_MANAGER_H
#define CHARACTER_MANAGER_H
#include <vector>
class Character;
struct lua_State;
+1
View File
@@ -11,6 +11,7 @@
#include "InputEventPlus.h"
#include "OptionRowHandler.h"
const char *CodeNames[] = {
"PrevSteps1",
"PrevSteps2",
+3
View File
@@ -4,6 +4,9 @@
#include "InputEventPlus.h"
#include "MessageManager.h"
#include <vector>
#define CODE_NAMES THEME->GetMetric (sType,"CodeNames")
#define CODE( s ) THEME->GetMetric (sType,ssprintf("Code%s",s.c_str()))
void InputQueueCodeSet::Load( const RString &sType )
+3
View File
@@ -3,6 +3,9 @@
#include "InputQueue.h"
#include <vector>
struct Message;
class InputQueueCodeSet
{
+2
View File
@@ -6,6 +6,8 @@
#include <cstddef>
#include <numeric>
#include <vector>
RString Command::GetName() const
{
+3
View File
@@ -3,6 +3,9 @@
#ifndef Commands_H
#define Commands_H
#include <vector>
class Command
{
public:
+2
View File
@@ -18,6 +18,8 @@
#include "ScreenInstallOverlay.h"
#include "ver.h"
#include <vector>
// only used for Version()
#if defined(_WINDOWS)
#include <windows.h>
+3
View File
@@ -1,6 +1,9 @@
#ifndef CommandLineActions_H
#define CommandLineActions_H
#include <vector>
class LoadingWindow;
/** @brief The collection of command line actions. */
+3
View File
@@ -8,6 +8,9 @@
#include "ProductInfo.h"
#include "LuaManager.h"
#include <vector>
ThemeMetric<RString> CommonMetrics::OPERATOR_MENU_SCREEN ("Common","OperatorMenuScreen");
ThemeMetric<RString> CommonMetrics::FIRST_ATTRACT_SCREEN ("Common","FirstAttractScreen");
ThemeMetric<RString> CommonMetrics::DEFAULT_MODIFIERS ("Common","DefaultModifiers" );
+3
View File
@@ -7,6 +7,9 @@
#include "GameConstantsAndTypes.h"
#include "LocalizedString.h"
#include <vector>
// Types
class ThemeMetricDifficultiesToShow : public ThemeMetric<RString>
{
+3 -1
View File
@@ -19,7 +19,9 @@
#include "Style.h"
#include <cstddef>
#include <limits.h>
#include <climits>
#include <vector>
static Preference<int> MAX_SONGS_IN_EDIT_COURSE( "MaxSongsInEditCourse", -1 );
+3
View File
@@ -8,8 +8,11 @@
#include "RageTypes.h"
#include "SongUtil.h"
#include "StepsUtil.h"
#include <map>
#include <set>
#include <vector>
struct lua_State;
class Style;
+4
View File
@@ -2,6 +2,10 @@
#define COURSE_CONTENTS_LIST_H
#include "ActorScroller.h"
#include <vector>
class CourseEntryDisplay;
/** @brief Holds course name and banner. */
class CourseContentsList : public ActorScroller
+2
View File
@@ -16,6 +16,8 @@
#include "CourseUtil.h"
#include <cfloat>
#include <vector>
/** @brief Edit courses can only be so big before they are rejected. */
const int MAX_EDIT_COURSE_SIZE_BYTES = 32*1024; // 32KB
+3
View File
@@ -16,6 +16,9 @@
#include "RageFileManager.h"
#include "CourseWriterCRS.h"
#include <vector>
// Sorting stuff
static bool CompareCoursePointersByName( const Course* pCourse1, const Course* pCourse2 )
{
+3
View File
@@ -4,6 +4,9 @@
#include "GameConstantsAndTypes.h"
#include "Difficulty.h"
#include <vector>
class Course;
class Profile;
class XNode;
+3
View File
@@ -7,6 +7,9 @@
#include "Song.h"
#include "RageFileDriverMemory.h"
#include <vector>
/** @brief Load the difficulty names from CourseLoaderCRS. */
extern const char *g_CRSDifficultyNames[]; // in CourseLoaderCRS
+2
View File
@@ -17,6 +17,8 @@
#include "LuaManager.h"
#include <cstdint>
#include <vector>
CryptManager* CRYPTMAN = nullptr; // global and accessible from anywhere in our program
+3
View File
@@ -4,6 +4,9 @@
#include "RageFile.h"
#include "RageLog.h"
#include <vector>
CsvFile::CsvFile()
{
}
+3
View File
@@ -3,6 +3,9 @@
#ifndef CsvFile_H
#define CsvFile_H
#include <vector>
class RageFileBasic;
class CsvFile
+2
View File
@@ -5,6 +5,8 @@
#include <cstddef>
#include <list>
#include <vector>
// Spline solving optimization:
// The tridiagonal part of the system of equations for a spline of size n is
+3
View File
@@ -9,6 +9,9 @@
#include "Steps.h"
#include "Trail.h"
#include <vector>
static const char *DifficultyNames[] = {
"Beginner",
"Easy",
+2
View File
@@ -11,6 +11,8 @@
#include "XmlFile.h"
#include <cstddef>
#include <vector>
/** @brief Specifies the max number of charts available for a song.
*
+3
View File
@@ -7,6 +7,9 @@
#include "StepsDisplay.h"
#include "ThemeMetric.h"
#include <vector>
class Song;
class Steps;
+3
View File
@@ -3,6 +3,9 @@
#include "LuaBinding.h"
#include "RageLog.h"
#include <vector>
class LunaDisplayMode: public Luna<DisplayMode>
{
public:
+2
View File
@@ -14,6 +14,8 @@
#include "SongUtil.h"
#include <cstddef>
#include <vector>
static const char *EditMenuRowNames[] = {
"Group",
+3
View File
@@ -10,6 +10,9 @@
#include "EnumHelper.h"
#include "ThemeMetric.h"
#include <vector>
/** @brief What type of row is needed for the EditMenu? */
enum EditMenuRow
{
+2
View File
@@ -13,6 +13,8 @@
#include <cmath>
#include <cstddef>
#include <vector>
FontPage::FontPage(): m_iHeight(0), m_iLineSpacing(0), m_fVshift(0),
m_iDrawExtraPixelsLeft(0), m_iDrawExtraPixelsRight(0),
+2
View File
@@ -9,6 +9,8 @@
#include <cstddef>
#include <map>
#include <vector>
class FontPage;
class RageTexture;
+3
View File
@@ -3,6 +3,9 @@
#include "ActorFrame.h"
#include <vector>
class Song;
/** @brief Foreground in front of notes while playing. */
class Foreground: public ActorFrame
+2
View File
@@ -24,6 +24,8 @@
#include "ScreenPrompt.h"
#include <cstddef>
#include <vector>
static LocalizedString COULD_NOT_LAUNCH_BROWSER( "GameCommand", "Could not launch web browser." );
+3
View File
@@ -8,7 +8,10 @@
#include "Difficulty.h"
#include "LuaReference.h"
#include "Command.h"
#include <map>
#include <vector>
class Song;
class Steps;
+2
View File
@@ -12,6 +12,8 @@
#include <cfloat>
#include <cmath>
#include <vector>
RString StepsTypeToString( StepsType st );
+2
View File
@@ -6,6 +6,8 @@
#include "EnumHelper.h"
#include <cfloat>
#include <vector>
// Note definitions
/** @brief Define the mininum difficulty value allowed. */
+2
View File
@@ -22,6 +22,8 @@
#include "RageInput.h"
#include <cmath>
#include <vector>
static RageTimer g_GameplayTimer;
+2
View File
@@ -15,6 +15,8 @@
#include "Style.h"
#include <cstddef>
#include <vector>
GameManager* GAMEMAN = nullptr; // global and accessable from anywhere in our program
+3
View File
@@ -10,6 +10,9 @@ struct lua_State;
#include "GameConstantsAndTypes.h"
#include "GameInput.h"
#include <vector>
/** @brief The collective information about a Steps' Type. */
struct StepsTypeInfo
{
+2
View File
@@ -22,6 +22,8 @@
#include <cmath>
#include <cstddef>
#include <vector>
GameSoundManager *SOUND = nullptr;
+2
View File
@@ -46,6 +46,8 @@
#include <cstddef>
#include <ctime>
#include <set>
#include <vector>
GameState* GAMESTATE = nullptr; // global and accessible from anywhere in our program
+2
View File
@@ -17,6 +17,8 @@
#include <deque>
#include <map>
#include <set>
#include <vector>
class Character;
class Course;
+2
View File
@@ -11,6 +11,8 @@
#include "ActorUtil.h"
#include <cstddef>
#include <vector>
void GhostArrowRow::Load( const PlayerState* pPlayerState, float fYReverseOffset )
{
+3
View File
@@ -6,6 +6,9 @@
#include "NoteTypes.h"
#include "NoteDisplay.h"
#include <vector>
class PlayerState;
/** @brief Row of GhostArrow Actors. */
class GhostArrowRow : public ActorFrame
+4
View File
@@ -5,6 +5,10 @@
#include "Grade.h"
#include "PlayerNumber.h"
#include "AutoActor.h"
#include <vector>
struct lua_State;
/** @brief Grade shown on ScreenEvaluation. */
class GradeDisplay : public ActorFrame
+2
View File
@@ -12,6 +12,8 @@
#include "XmlFile.h"
#include <cmath>
#include <vector>
//#define DIVIDE_LINE_WIDTH THEME->GetMetricI(m_sName,"TexturedBottomHalf")
REGISTER_ACTOR_CLASS( GraphDisplay );
+3
View File
@@ -4,6 +4,9 @@
#include "ActorFrame.h"
#include "AutoActor.h"
#include <vector>
class StageStats;
class PlayerStageStats;
class GraphLine;
+3
View File
@@ -13,6 +13,9 @@
// I feel weird about this coupling, but it has to be done. -aj
#include "GameState.h"
#include <vector>
REGISTER_ACTOR_CLASS(GrooveRadar);
static const ThemeMetric<float> RADAR_EDGE_WIDTH ("GrooveRadar","EdgeWidth");
+4
View File
@@ -6,6 +6,10 @@
#include "AutoActor.h"
#include "PlayerNumber.h"
#include "GameConstantsAndTypes.h"
#include <vector>
class Steps;
struct RadarValues;
/** @brief The song's GrooveRadar displayed in SelectMusic. */
+3
View File
@@ -5,6 +5,9 @@
#include "ThemeManager.h"
#include "ActorUtil.h"
#include <vector>
REGISTER_ACTOR_CLASS( HelpDisplay );
HelpDisplay::HelpDisplay()
+3
View File
@@ -3,6 +3,9 @@
#include "BitmapText.h"
#include <vector>
struct lua_State;
/** @brief A BitmapText that cycles through messages. */
class HelpDisplay : public BitmapText
+2
View File
@@ -9,6 +9,8 @@
#include <algorithm>
#include <cstddef>
#include <vector>
ThemeMetric<RString> EMPTY_NAME("HighScore","EmptyName");
+3
View File
@@ -6,6 +6,9 @@
#include "DateTime.h"
#include "RageUtil_AutoPtr.h"
#include <vector>
class XNode;
struct RadarValues;
struct lua_State;
+2
View File
@@ -13,6 +13,8 @@
#include "ScreenDimensions.h"
#include <set>
#include <vector>
static const char *InputEventTypeNames[] = {
"FirstPress",
+3
View File
@@ -5,6 +5,9 @@
#include "RageInputDevice.h"
#include <vector>
enum InputEventType
{
// The device was just pressed.
+2
View File
@@ -12,6 +12,8 @@
#include "arch/Dialog/Dialog.h"
#include <cstddef>
#include <vector>
#define AUTOMAPPINGS_DIR "/Data/AutoMappings/"
+4
View File
@@ -4,6 +4,10 @@
#include "RageInputDevice.h"
#include "GameInput.h"
#include "PlayerNumber.h"
#include <vector>
struct Game;
const int NUM_GAME_TO_DEVICE_SLOTS = 5; // five device inputs may map to one game input
+3
View File
@@ -5,6 +5,9 @@
#include "InputEventPlus.h"
#include "InputMapper.h"
#include <vector>
InputQueue* INPUTQUEUE = nullptr; // global and accessible from anywhere in our program
const unsigned MAX_INPUT_QUEUE_LENGTH = 32;
+3
View File
@@ -4,6 +4,9 @@
#include "GameInput.h"
#include "InputFilter.h"
#include <vector>
class InputEventPlus;
class RageTimer;
+3
View File
@@ -11,6 +11,9 @@
#include "ThemeMetric.h"
#include "PlayerState.h"
#include <vector>
void ReloadItems();
#define NUM_ITEM_TYPES THEME->GetMetricF("Inventory","NumItemTypes")
+3
View File
@@ -6,6 +6,9 @@
#include "RageSound.h"
#include "ScreenMessage.h"
#include <vector>
AutoScreenMessage( SM_BattleDamageLevel1 );
AutoScreenMessage( SM_BattleDamageLevel2 );
AutoScreenMessage( SM_BattleDamageLevel3 );
+3
View File
@@ -6,6 +6,9 @@
#include "arch/Dialog/Dialog.h"
#include "json/json.h"
#include <vector>
bool JsonUtil::LoadFromString(Json::Value &root, RString sData, RString &sErrorOut)
{
Json::Reader reader;
+3
View File
@@ -5,6 +5,9 @@
class RageFileBasic;
#include "json/json.h"
#include <vector>
namespace JsonUtil
{
bool LoadFromString( Json::Value &root, RString sData, RString &sErrorOut );
+2
View File
@@ -16,6 +16,8 @@
#include <cmath>
#include <cstddef>
#include <vector>
const RString DEFAULT_LIGHTS_DRIVER = "SystemMessage,Export";
static Preference<RString> g_sLightsDriver( "LightsDriver", "" ); // "" == DEFAULT_LIGHTS_DRIVER
+3
View File
@@ -7,6 +7,9 @@
#include "Preference.h"
#include "RageTimer.h"
#include <vector>
extern Preference<float> g_fLightsFalloffSeconds;
extern Preference<float> g_fLightsAheadSeconds;
+4
View File
@@ -4,6 +4,10 @@
#define LuaBinding_H
#include "LuaManager.h"
#include <vector>
class LuaReference;
class LuaBinding
+1
View File
@@ -20,6 +20,7 @@
#include <cstdint>
#include <map>
#include <sstream> // conversion for lua functions.
#include <vector>
LuaManager *LUA = nullptr;
struct Impl
+3
View File
@@ -22,6 +22,9 @@ extern "C"
// For Dialog::Result
#include "arch/Dialog/Dialog.h"
#include <vector>
class LuaManager
{
public:
+2
View File
@@ -7,6 +7,8 @@
#include "Song.h"
#include <map>
#include <vector>
// TODO: Use a marker for default color instead of a specific color that may
// accidentally get written back into a lyrics file.
+2
View File
@@ -13,6 +13,8 @@
#include "LuaManager.h"
#include <cstddef>
#include <vector>
MemoryCardManager* MEMCARDMAN = nullptr; // global and accessible from anywhere in our program

Some files were not shown because too many files have changed in this diff Show More