Search in sources :

Example 1 with Dart

use of com.watabou.pixeldungeon.items.weapon.missiles.Dart in project pixel-dungeon by watabou.

the class ScorpioSprite method onComplete.

@Override
public void onComplete(Animation anim) {
    if (anim == zap) {
        idle();
        ((MissileSprite) parent.recycle(MissileSprite.class)).reset(ch.pos, cellToAttack, new Dart(), new Callback() {

            @Override
            public void call() {
                ch.onAttackComplete();
            }
        });
    } else {
        super.onComplete(anim);
    }
}
Also used : Callback(com.watabou.utils.Callback) Dart(com.watabou.pixeldungeon.items.weapon.missiles.Dart)

Aggregations

Dart (com.watabou.pixeldungeon.items.weapon.missiles.Dart)1 Callback (com.watabou.utils.Callback)1