コード例 #1
0
ファイル: gift.cpp プロジェクト: Lw-Cui/Fighter
bomb::bomb()
{
    _prototype = "ufo2";
    load();
    setRandomPosition();

}
コード例 #2
0
ファイル: gift.cpp プロジェクト: Lw-Cui/Fighter
doubleFire::doubleFire()
{
    _prototype = "ufo1";
    _velocity = game::_controlPanel.getDoubleBulletVelocity();
    load();
    setRandomPosition();
}
コード例 #3
0
ファイル: plane.cpp プロジェクト: Lw-Cui/Fighter
batman::batman()
{
    _prototype = "*-batman";
    _deathAnimation = ANIMATION;
    _energy = ENERGY;
    _velocity = game::_controlPanel.getBatmanVelocity();
    load();
    setRandomPosition();
}
コード例 #4
0
ファイル: plane.cpp プロジェクト: Lw-Cui/Fighter
boss::boss()
{
    _energy = ENERGY;
    _deathAnimation = ANIMATION;
    _prototype = "*-boss";
    _velocity = game::_controlPanel.getBossVelocity();
    load();
    setRandomPosition();
}
コード例 #5
0
/*
* 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);
}