Exemple #1
0
bomb::bomb()
{
    _prototype = "ufo2";
    load();
    setRandomPosition();

}
Exemple #2
0
doubleFire::doubleFire()
{
    _prototype = "ufo1";
    _velocity = game::_controlPanel.getDoubleBulletVelocity();
    load();
    setRandomPosition();
}
Exemple #3
0
batman::batman()
{
    _prototype = "*-batman";
    _deathAnimation = ANIMATION;
    _energy = ENERGY;
    _velocity = game::_controlPanel.getBatmanVelocity();
    load();
    setRandomPosition();
}
Exemple #4
0
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);
}