bomb::bomb() { _prototype = "ufo2"; load(); setRandomPosition(); }
doubleFire::doubleFire() { _prototype = "ufo1"; _velocity = game::_controlPanel.getDoubleBulletVelocity(); load(); setRandomPosition(); }
batman::batman() { _prototype = "*-batman"; _deathAnimation = ANIMATION; _energy = ENERGY; _velocity = game::_controlPanel.getBatmanVelocity(); load(); setRandomPosition(); }
boss::boss() { _energy = ENERGY; _deathAnimation = ANIMATION; _prototype = "*-boss"; _velocity = game::_controlPanel.getBossVelocity(); load(); setRandomPosition(); }
/* * Initialize the position of the monsters. In this case, they are randomly initialized * @param screenWidth is the window width * @param screenHeight is the window height */ void ListOfMonsters::initMonsters(int screenWidth, int screenHeight) { setRandomPosition(screenWidth, screenHeight); }