Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

GameState.cpp File Reference

#include "global.h"
#include "GameState.h"
#include "IniFile.h"
#include "GameManager.h"
#include "PrefsManager.h"
#include "InputMapper.h"
#include "song.h"
#include "Course.h"
#include "RageLog.h"
#include "RageUtil.h"
#include "SongManager.h"
#include "Steps.h"
#include "NoteSkinManager.h"
#include "GameCommand.h"
#include "NoteFieldPositioning.h"
#include "Character.h"
#include "UnlockSystem.h"
#include "AnnouncerManager.h"
#include "ProfileManager.h"
#include "arch/arch.h"
#include "ThemeManager.h"
#include "LightsManager.h"
#include "RageFile.h"
#include "Bookkeeper.h"
#include "MemoryCardManager.h"
#include "StageStats.h"
#include "GameConstantsAndTypes.h"
#include "StepMania.h"
#include "CommonMetrics.h"
#include "Actor.h"
#include "PlayerState.h"
#include "Style.h"
#include <ctime>
#include <set>
#include "LuaFunctions.h"

Classes

struct  SongAndSteps

Defines

#define CHARACTERS_DIR   "Characters/"
#define NAMES_BLACKLIST_FILE   "Data/NamesBlacklist.dat"

Functions

void AddPlayerStatsToProfile (Profile *pProfile, const StageStats &ss, PlayerNumber pn)
int GetNumStagesForCurrentSong ()
template<class T> void setmin (T &a, const T &b)
template<class T> void setmax (T &a, const T &b)
bool PlayerIsUsingModifier (PlayerNumber pn, const CString sModifier)
 LuaFunction_PlayerNumber (IsPlayerEnabled, GAMESTATE->IsPlayerEnabled(pn)) LuaFunction_PlayerNumber(IsHumanPlayer
GAMESTATE IsHumanPlayer (pn)) LuaFunction_PlayerNumber(IsPlayerUsingProfile
GAMESTATE PROFILEMAN IsUsingProfile (pn)) LuaFunction_PlayerNumber(IsWinner
GAMESTATE PROFILEMAN GAMESTATE GetStageResult (pn)==RESULT_WIN) LuaFunction_NoArgs(IsCourseMode, GAMESTATE->IsCourseMode()) LuaFunction_NoArgs(IsDemonstration, GAMESTATE->m_bDemonstrationOrJukebox) LuaFunction_NoArgs(StageIndex, GAMESTATE->GetStageIndex()) LuaFunction_NoArgs(NumStagesLeft, GAMESTATE->GetNumStagesLeft()) LuaFunction_NoArgs(IsFinalStage, GAMESTATE->IsFinalStage()) LuaFunction_NoArgs(IsExtraStage, GAMESTATE->IsExtraStage()) LuaFunction_NoArgs(IsExtraStage2, GAMESTATE->IsExtraStage2()) LuaFunction_NoArgs(CourseSongIndex, GAMESTATE->GetCourseSongIndex()) LuaFunction_NoArgs(PlayModeName, PlayModeToString(GAMESTATE->m_PlayMode)) LuaFunction_NoArgs(CurStyleName, CString(GAMESTATE->m_pCurStyle==NULL?"none":GAMESTATE->GetCurrentStyle()->m_szName)) LuaFunction_NoArgs(GetNumPlayersEnabled, GAMESTATE->GetNumPlayersEnabled()) LuaFunction_NoArgs(PlayerUsingBothSides, GAMESTATE->PlayerUsingBothSides()) LuaFunction_NoArgs(GetEasiestNotesDifficulty, GAMESTATE->GetEasiestNotesDifficulty()) LuaFunction_Str(GetEnv, GAMESTATE->m_mapEnv[str]) LuaFunction_StrStr(SetEnv, GAMESTATE->m_mapEnv[str1]=str2) LuaFunction_NoArgs(CurSong, GAMESTATE->m_pCurSong) LuaFunction_PlayerNumber(CurSteps, GAMESTATE->m_pCurSteps[pn]) int LuaFunc_UsingModifier(lua_State *L)
 LuaFunction (UsingModifier)

Variables

GameStateGAMESTATE = NULL

Define Documentation

#define CHARACTERS_DIR   "Characters/"
 

#define NAMES_BLACKLIST_FILE   "Data/NamesBlacklist.dat"
 


Function Documentation

void AddPlayerStatsToProfile Profile pProfile,
const StageStats ss,
PlayerNumber  pn
 

int GetNumStagesForCurrentSong  )  [static]
 

GAMESTATE PROFILEMAN GAMESTATE GetStageResult pn   ) 
 

GAMESTATE IsHumanPlayer pn   ) 
 

GAMESTATE PROFILEMAN IsUsingProfile pn   ) 
 

LuaFunction UsingModifier   ) 
 

LuaFunction_PlayerNumber IsPlayerEnabled  ,
GAMESTATE->  IsPlayerEnabled(pn)
 

bool PlayerIsUsingModifier PlayerNumber  pn,
const CString  sModifier
 

template<class T>
void setmax T &  a,
const T &  b
 

template<class T>
void setmin T &  a,
const T &  b
 


Variable Documentation

GameState* GAMESTATE = NULL
 


Generated on Thu Jan 27 20:57:39 2005 for StepMania by doxygen 1.3.7