Arreglos varios al codi
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "enemy_formations.h"
|
||||
#include "balloon.h" // for BALLOON_VELX_NEGATIVE, BALLOON_VELX_POSITIVE
|
||||
#include "param.h" // for param
|
||||
#include "utils.h" // for paramGame_t, param_t, zone_t, BLOCK
|
||||
#include "balloon.h" // for BALLOON_VELX_NEGATIVE, BALLOON_VELX_POSITIVE
|
||||
#include "param.h" // for param
|
||||
#include "utils.h" // for paramGame_t, param_t, zone_t, BLOCK
|
||||
|
||||
// Constructor
|
||||
EnemyFormations::EnemyFormations()
|
||||
@@ -11,27 +11,22 @@ EnemyFormations::EnemyFormations()
|
||||
initGameStages();
|
||||
}
|
||||
|
||||
// Destructor
|
||||
EnemyFormations::~EnemyFormations()
|
||||
{
|
||||
}
|
||||
|
||||
// Inicializa las formaciones enemigas
|
||||
void EnemyFormations::initEnemyFormations()
|
||||
{
|
||||
const int y4 = - BLOCK;
|
||||
const int y4 = -BLOCK;
|
||||
const int x4_0 = param.game.playArea.rect.x;
|
||||
const int x4_100 = param.game.playArea.rect.w - BALLOON_WIDTH_4;
|
||||
|
||||
const int y3 = - BLOCK;
|
||||
const int y3 = -BLOCK;
|
||||
const int x3_0 = param.game.playArea.rect.x;
|
||||
const int x3_100 = param.game.playArea.rect.w - BALLOON_WIDTH_3;
|
||||
|
||||
const int y2 = - BLOCK;
|
||||
const int y2 = -BLOCK;
|
||||
const int x2_0 = param.game.playArea.rect.x;
|
||||
const int x2_100 = param.game.playArea.rect.w - BALLOON_WIDTH_2;
|
||||
|
||||
const int y1 = - BLOCK;
|
||||
const int y1 = -BLOCK;
|
||||
const int x1_0 = param.game.playArea.rect.x;
|
||||
const int x1_50 = param.game.playArea.centerX - (BALLOON_WIDTH_1 / 2);
|
||||
const int x1_100 = param.game.playArea.rect.w - BALLOON_WIDTH_1;
|
||||
@@ -719,7 +714,7 @@ void EnemyFormations::initGameStages()
|
||||
}
|
||||
|
||||
// Devuelve una fase
|
||||
stage_t EnemyFormations::getStage(int index)
|
||||
stage_t EnemyFormations::getStage(int index) const
|
||||
{
|
||||
return stage[index];
|
||||
}
|
||||
Reference in New Issue
Block a user