Search in sources :

Example 11 with Ballistica

use of com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica in project shattered-pixel-dungeon-gdx by 00-Evan.

the class Eye method act.

@Override
protected boolean act() {
    if (beamCharged && state != HUNTING) {
        beamCharged = false;
    }
    if (beam == null && beamTarget != -1) {
        beam = new Ballistica(pos, beamTarget, Ballistica.STOP_TERRAIN);
        sprite.turnTo(pos, beamTarget);
    }
    if (beamCooldown > 0)
        beamCooldown--;
    return super.act();
}
Also used : Ballistica(com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica)

Aggregations

Ballistica (com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica)11 Char (com.shatteredpixel.shatteredpixeldungeon.actors.Char)5 Callback (com.watabou.utils.Callback)4 Actor (com.shatteredpixel.shatteredpixeldungeon.actors.Actor)3 Poison (com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Poison)1 Hero (com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero)1 Beam (com.shatteredpixel.shatteredpixeldungeon.effects.Beam)1 Chains (com.shatteredpixel.shatteredpixeldungeon.effects.Chains)1 Pushing (com.shatteredpixel.shatteredpixeldungeon.effects.Pushing)1 Heap (com.shatteredpixel.shatteredpixeldungeon.items.Heap)1 Item (com.shatteredpixel.shatteredpixeldungeon.items.Item)1 Bag (com.shatteredpixel.shatteredpixeldungeon.items.bags.Bag)1 Dart (com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.darts.Dart)1 PoisonDart (com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.darts.PoisonDart)1 ArrayList (java.util.ArrayList)1