NOW I start moving prototypes to headers?
I need to be more consistent...gah, hungry.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include "GameConstantsAndTypes.h" // for TapNoteScore
|
||||
#include "RageTexturePreloader.h"
|
||||
|
||||
RString GetAttackPieceName( const RString &sAttack );
|
||||
|
||||
class PlayerState;
|
||||
/** @brief A graphical display for attacks. */
|
||||
class AttackDisplay : public ActorFrame
|
||||
|
||||
@@ -11,6 +11,10 @@ class XNode;
|
||||
class CourseEntry;
|
||||
class Song;
|
||||
|
||||
bool CompareCoursePointersBySortValueAscending( const Course *pSong1, const Course *pSong2 );
|
||||
bool CompareCoursePointersBySortValueDescending( const Course *pSong1, const Course *pSong2 );
|
||||
bool CompareCoursePointersByTitle( const Course *pCourse1, const Course *pCourse2 );
|
||||
|
||||
/** @brief Utility functions that deal with Courses. */
|
||||
namespace CourseUtil
|
||||
{
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "EnumHelper.h"
|
||||
#include <ctime>
|
||||
|
||||
int StringToDayInYear( RString sDayInYear );
|
||||
|
||||
/** @brief The number of days we check for previously. */
|
||||
const int NUM_LAST_DAYS = 7;
|
||||
/** @brief The number of weeks we check for previously. */
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
class TimingData;
|
||||
class RageSound;
|
||||
struct lua_State;
|
||||
|
||||
int MusicThread_start( void *p );
|
||||
|
||||
/** @brief High-level sound utilities. */
|
||||
class GameSoundManager
|
||||
{
|
||||
|
||||
@@ -32,6 +32,8 @@ class Style;
|
||||
class TimingData;
|
||||
class Trail;
|
||||
|
||||
SortOrder GetDefaultSort();
|
||||
|
||||
/** @brief Holds game data that is not saved between sessions. */
|
||||
class GameState
|
||||
{
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "ThemeMetric.h"
|
||||
#include "AutoActor.h"
|
||||
|
||||
RString WARNING_COMMAND_NAME( size_t i );
|
||||
|
||||
class MenuTimer : public ActorFrame
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -778,13 +778,6 @@ void NoteDataUtil::LoadTransformedLightsFromTwo( const NoteData &marquee, const
|
||||
NoteDataUtil::RemoveMines( out );
|
||||
}
|
||||
|
||||
struct RadarStats {
|
||||
int taps;
|
||||
int jumps;
|
||||
int hands;
|
||||
int quads;
|
||||
};
|
||||
|
||||
RadarStats CalculateRadarStatsFast( const NoteData &in, RadarStats &out )
|
||||
{
|
||||
out.taps = 0;
|
||||
|
||||
@@ -10,6 +10,24 @@ class NoteData;
|
||||
class Song;
|
||||
struct AttackArray;
|
||||
|
||||
/** @brief A limited selection of the RadarValues. */
|
||||
struct RadarStats
|
||||
{
|
||||
/** @brief The number of tap notes in the song. */
|
||||
int taps;
|
||||
/** @brief The number of jumps in the song. */
|
||||
int jumps;
|
||||
/** @brief The number of 3 panel hits in the song. */
|
||||
int hands;
|
||||
/** @brief The number of 4 panel hits in the song. */
|
||||
int quads;
|
||||
};
|
||||
|
||||
void PlaceAutoKeysound( NoteData &out, int row, TapNote akTap );
|
||||
int FindLongestOverlappingHoldNoteForAnyTrack( const NoteData &in, int iRow );
|
||||
void LightTransformHelper( const NoteData &in, NoteData &out, const vector<int> &aiTracks );
|
||||
RadarStats CalculateRadarStatsFast( const NoteData &in, RadarStats &out );
|
||||
|
||||
/**
|
||||
* @brief Utility functions that deal with NoteData.
|
||||
*
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
|
||||
class IniFile;
|
||||
|
||||
void ValidateDisplayAspectRatio( float &val );
|
||||
void ValidateSongsPerPlay( int &val );
|
||||
|
||||
/** @brief How many songs can be played during a normal game max?
|
||||
*
|
||||
* This assumes no extra stages, no event mode, no course modes. */
|
||||
|
||||
@@ -10,6 +10,10 @@ namespace RageFileManagerUtil
|
||||
class RageFileDriver;
|
||||
class RageFileBasic;
|
||||
struct lua_State;
|
||||
|
||||
bool ilt( const RString &a, const RString &b );
|
||||
bool ieq( const RString &a, const RString &b );
|
||||
|
||||
/** @brief File utilities and high-level manager for RageFile objects. */
|
||||
class RageFileManager
|
||||
{
|
||||
|
||||
@@ -26,7 +26,6 @@ enum tagtype {
|
||||
TAGTYPE_ID3V2_FOOTER
|
||||
};
|
||||
|
||||
typedef unsigned long id3_length_t;
|
||||
static const int ID3_TAG_FLAG_FOOTERPRESENT = 0x10;
|
||||
|
||||
static tagtype tagtype( const unsigned char *data, id3_length_t length )
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
|
||||
struct madlib_t;
|
||||
|
||||
typedef unsigned long id3_length_t;
|
||||
|
||||
signed long id3_tag_query( const unsigned char *data, id3_length_t length );
|
||||
void fill_frame_index_cache( madlib_t *mad );
|
||||
|
||||
class RageSoundReader_MP3: public RageSoundReader_FileReader
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#include "RageFile.h"
|
||||
|
||||
struct WavReader;
|
||||
|
||||
RString ReadString( RageFileBasic &f, int iSize, RString &sError );
|
||||
|
||||
class RageSoundReader_WAV: public RageSoundReader_FileReader
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -16,6 +16,9 @@ class StepsID;
|
||||
struct lua_State;
|
||||
struct BackgroundChange;
|
||||
|
||||
void FixupPath( RString &path, const RString &sSongPath );
|
||||
RString GetSongAssetPath( RString sPath, const RString &sSongPath );
|
||||
|
||||
/** @brief The version of the .ssc file format. */
|
||||
const static float STEPFILE_VERSION_NUMBER = 0.7f;
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@ struct lua_State;
|
||||
#include "RageTexturePreloader.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
RString SONG_GROUP_COLOR_NAME( size_t i );
|
||||
RString COURSE_GROUP_COLOR_NAME( size_t i );
|
||||
bool CompareNotesPointersForExtra(const Steps *n1, const Steps *n2);
|
||||
|
||||
/** @brief The max number of edit steps a profile can have. */
|
||||
const int MAX_EDIT_STEPS_PER_PROFILE = 200;
|
||||
/** @brief The max number of edit courses a profile can have. */
|
||||
|
||||
@@ -13,6 +13,8 @@ class Steps;
|
||||
class Profile;
|
||||
class XNode;
|
||||
|
||||
void AppendOctal( int n, int digits, RString &out );
|
||||
|
||||
/** @brief The criteria for dealing with songs. */
|
||||
class SongCriteria
|
||||
{
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "Actor.h"
|
||||
#include "RageTextureID.h"
|
||||
|
||||
void TexCoordArrayFromRect( float fImageCoords[8], const RectF &rect );
|
||||
|
||||
class RageTexture;
|
||||
/** @brief A bitmap Actor that animates and moves around. */
|
||||
class Sprite: public Actor
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "arch/RageDriver.h"
|
||||
#include <map>
|
||||
|
||||
void ForceToAscii( RString &str );
|
||||
|
||||
class RageMovieTexture : public RageTexture
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -28,6 +28,10 @@ namespace avcodec
|
||||
#endif
|
||||
};
|
||||
|
||||
int URLRageFile_open( avcodec::URLContext *h, const char *filename, int flags );
|
||||
int URLRageFile_read( avcodec::URLContext *h, unsigned char *buf, int size );
|
||||
int URLRageFile_close( avcodec::URLContext *h );
|
||||
|
||||
/*
|
||||
#if defined(_MSC_VER)
|
||||
#pragma comment(lib, "ffmpeg/lib/avcodec.lib")
|
||||
|
||||
@@ -28,6 +28,8 @@ extern const char *const version_date;
|
||||
extern const char *const version_time;
|
||||
#endif
|
||||
|
||||
bool child_read( int fd, void *p, int size );
|
||||
|
||||
const char *g_pCrashHandlerArgv0 = NULL;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user