Renamed ensureOpponentMenu() => ConstructOpponentMenu() for clarity.

This commit is contained in:
wrenczes@gmail.com
2010-12-29 11:04:37 +00:00
parent 11b65fe006
commit f2f9ae3168
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ private:
bool MusicExist(string FileName); bool MusicExist(string FileName);
void loadPlayer(int playerId, int decknb = 0, int isAI = 0); void loadPlayer(int playerId, int decknb = 0, int isAI = 0);
void ensureOpponentMenu(); //loads the opponentMenu if it doesn't exist void ConstructOpponentMenu(); //loads the opponentMenu if it doesn't exist
void initScroller(); void initScroller();
public: public:
+3 -3
View File
@@ -276,7 +276,7 @@ bool GameStateDuel::MusicExist(string FileName)
return false; return false;
} }
void GameStateDuel::ensureOpponentMenu() void GameStateDuel::ConstructOpponentMenu()
{ {
if (opponentMenu == NULL) if (opponentMenu == NULL)
{ {
@@ -375,7 +375,7 @@ void GameStateDuel::Update(float dt)
{ {
if (mParent->players[0] == PLAYER_TYPE_HUMAN) if (mParent->players[0] == PLAYER_TYPE_HUMAN)
{ {
ensureOpponentMenu(); ConstructOpponentMenu();
opponentMenu->Update(dt); opponentMenu->Update(dt);
} }
else else
@@ -395,7 +395,7 @@ void GameStateDuel::Update(float dt)
} }
else else
{ {
ensureOpponentMenu(); ConstructOpponentMenu();
if (opponentMenu->isClosed()) if (opponentMenu->isClosed())
mGamePhase = DUEL_STATE_PLAY; mGamePhase = DUEL_STATE_PLAY;
else else