- Yeshua's patch for ingame music
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-11-29 05:52:12 +00:00
parent b275b6f758
commit ec553ddfb8
2 changed files with 55 additions and 11 deletions

View File

@@ -31,7 +31,20 @@ class GameStateDuel: public GameState, public JGuiListener
SimpleMenu * opponentMenu;
SimpleMenu * menu;
bool premadeDeck;
int OpponentsDeckid;
string musictrack;
bool MusicExist(string FileName){
string filepath = RESPATH;
filepath = filepath + "/" + resources.musicFile(FileName);
std::ifstream file(filepath.c_str());
if (file) {
file.close();
return true;
}
else
return false;
}
void loadPlayer(int playerId, int decknb = 0, int isAI = 0);
void loadPlayerMomir(int playerId, int isAI);
void loadPlayerRandom(int playerId, int isAI, int mode);