Eliminado codigo sin usar
This commit is contained in:
@@ -342,8 +342,6 @@ void Game::init()
|
||||
mStageBitmapCounter = STAGE_COUNTER;
|
||||
mDeathCounter = DEATH_COUNTER;
|
||||
mExplosionTime = false;
|
||||
mRemainingExplosions = REMAINING_EXPLOSIONS;
|
||||
mRemainingExplosionsCounter = REMAINING_EXPLOSIONS_COUNTER;
|
||||
mTimeStopped = false;
|
||||
mTimeStoppedCounter = 0;
|
||||
mCounter = 0;
|
||||
@@ -2700,36 +2698,6 @@ bool Game::isExplosionTime()
|
||||
return mExplosionTime;
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
void Game::setRemainingExplosions(Uint8 value)
|
||||
{
|
||||
mRemainingExplosions = value;
|
||||
}
|
||||
|
||||
// Actualiza y comprueba el valor de la variable
|
||||
void Game::updateRemainingExplosionsCounter()
|
||||
{
|
||||
if (isExplosionTime())
|
||||
{
|
||||
if (mRemainingExplosionsCounter > 0)
|
||||
{
|
||||
mRemainingExplosionsCounter--;
|
||||
}
|
||||
else if (mRemainingExplosions > 0)
|
||||
{
|
||||
popAllBalloons();
|
||||
mRemainingExplosions--;
|
||||
mRemainingExplosionsCounter = REMAINING_EXPLOSIONS_COUNTER;
|
||||
}
|
||||
else
|
||||
{
|
||||
mExplosionTime = false;
|
||||
mRemainingExplosions = REMAINING_EXPLOSIONS;
|
||||
mRemainingExplosionsCounter = REMAINING_EXPLOSIONS_COUNTER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Actualiza la variable mEnemyDeployCounter
|
||||
void Game::updateEnemyDeployCounter()
|
||||
{
|
||||
@@ -2771,7 +2739,6 @@ void Game::updatePlayField()
|
||||
|
||||
// Actualiza los contadores de estado y efectos
|
||||
updateTimeStoppedCounter();
|
||||
updateRemainingExplosionsCounter();
|
||||
updateEnemyDeployCounter();
|
||||
updateShakeEffect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user