finalize dancing character directory structure
better camera movements animated face textures
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "NoteSkinManager.h"
|
||||
#include "ModeChoice.h"
|
||||
#include "NoteFieldPositioning.h"
|
||||
#include "Character.h"
|
||||
|
||||
|
||||
GameState* GAMESTATE = NULL; // global and accessable from anywhere in our program
|
||||
@@ -39,6 +40,7 @@ GameState::GameState()
|
||||
m_pPosition = NULL;
|
||||
|
||||
ResetLastRanking();
|
||||
ReloadCharacters();
|
||||
}
|
||||
|
||||
GameState::~GameState()
|
||||
@@ -134,6 +136,29 @@ void GameState::ResetLastRanking()
|
||||
}
|
||||
}
|
||||
|
||||
void GameState::ReloadCharacters()
|
||||
{
|
||||
int i;
|
||||
|
||||
for( i=0; i<m_pCharacters.size(); i++ )
|
||||
delete m_pCharacters[i];
|
||||
m_pCharacters.clear();
|
||||
|
||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||
m_pCurCharacters[p] = NULL;
|
||||
|
||||
CStringArray as;
|
||||
GetDirListing( "Characters/*", as, true, true );
|
||||
for( i=0; i<as.size(); i++ )
|
||||
{
|
||||
Character* pChar = new Character;
|
||||
if( pChar->Load( as[i] ) )
|
||||
m_pCharacters.push_back( pChar );
|
||||
else
|
||||
delete pChar;
|
||||
}
|
||||
}
|
||||
|
||||
const float GameState::MUSIC_SECONDS_INVALID = -5000.0f;
|
||||
|
||||
void GameState::ResetMusicStatistics()
|
||||
|
||||
Reference in New Issue
Block a user