Eliminados metodos y variables sobrantes de la clase player
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "game.h"
|
||||
|
||||
#define DEATH_COUNTER 350
|
||||
|
||||
// Constructor
|
||||
Game::Game(int playerID, int currentStage, SDL_Renderer *renderer, Screen *screen, Asset *asset, Lang *lang, Input *input, bool demo, param_t *param, options_t *options, section_t *section)
|
||||
{
|
||||
@@ -46,7 +48,7 @@ Game::Game(int playerID, int currentStage, SDL_Renderer *renderer, Screen *scree
|
||||
SDL_SetTextureBlendMode(canvas, SDL_BLENDMODE_BLEND);
|
||||
|
||||
// Inicializa las variables necesarias para la sección 'Game'
|
||||
init();
|
||||
init(playerID);
|
||||
}
|
||||
|
||||
Game::~Game()
|
||||
@@ -154,7 +156,7 @@ Game::~Game()
|
||||
}
|
||||
|
||||
// Inicializa las variables necesarias para la sección 'Game'
|
||||
void Game::init()
|
||||
void Game::init(int playerID)
|
||||
{
|
||||
ticks = 0;
|
||||
ticksSpeed = 15;
|
||||
@@ -174,6 +176,7 @@ void Game::init()
|
||||
players.push_back(player2);
|
||||
|
||||
|
||||
|
||||
|
||||
// Variables relacionadas con la dificultad
|
||||
switch (difficulty)
|
||||
|
||||
Reference in New Issue
Block a user