Erwan
- Yeshua's patch for ingame music
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user