@Override public void onComplete( Tweener tweener ) { kill(); if (callback != null) { callback.call(); } } }
@Override public void onComplete( Tweener tweener ) { kill(); if (callback != null) { callback.call(); } } }
@Override public void onComplete( Tweener tweener ) { kill(); if (callback != null) { callback.call(); } } }
@Override public void update() { super.update(); if (on) { float d = Game.elapsed; x += sx * d; y += sy * d; if ((time -= d) <= 0) { on = false; if (callback != null ) callback.call(); } } }
@Override public void update() { super.update(); if (on) { float d = Game.elapsed; x += sx * d; y += sy * d; if ((time -= d) <= 0) { on = false; if (callback != null ) callback.call(); } } }
@Override public void update() { super.update(); if (on) { float d = Game.elapsed; x += sx * d; y += sy * d; if ((time -= d) <= 0) { on = false; if( callback != null ) { callback.call(); } } } }
@Override public void onComplete( Tweener tweener ) { if (tweener == jumpTweener) { // if (visible && Level.water[ch.pos] && !ch.flying) { // GameScene.ripple( ch.pos ); // } if (jumpCallback != null) { jumpCallback.call(); } } else if (tweener == motion) { isMoving = false; motion.killAndErase(); motion = null; } }
@Override protected void fx( Ballistica beam, Callback callback ) { int cell = beam.path.get(Math.min(beam.dist, distance())); curUser.sprite.parent.add(new Beam.DeathRay(curUser.sprite.center(), DungeonTilemap.raisedTileCenterToWorld( cell ))); callback.call(); }
@Override protected void fx( Ballistica beam, Callback callback ) { int cell = beam.path.get(Math.min(beam.dist, distance())); curUser.sprite.parent.add(new Beam.DeathRay(curUser.sprite.center(), DungeonTilemap.raisedTileCenterToWorld( cell ))); callback.call(); }
@Override public void update() { if ((life -= Game.elapsed) < 0) { killAndErase(); if (callback != null) { callback.call(); } } else { float alpha = life / DURATION; for (Arc arc : arcs) { arc.alpha(alpha); } super.update(); } }
@Override public void update() { if ((life -= Game.elapsed) < 0) { killAndErase(); if (callback != null) { callback.call(); } } else { float alpha = life / DURATION; for (Arc arc : arcs) { arc.alpha(alpha); } super.update(); } }
@Override public void update() { if ((spent += Game.elapsed) > duration) { killAndErase(); if (callback != null) { callback.call(); } } else { float dx = to.x - from.x; float dy = to.y - from.y; for (int i = 0; i < chains.length; i++) { chains[i].center(new PointF( from.x + ((dx * (i / (float)chains.length)) * (spent/duration)), from.y + ((dy * (i / (float)chains.length)) * (spent/duration)) )); } } }
@Override protected void fx( int cell, Callback callback ) { cell = Ballistica.trace[Math.min( Ballistica.distance - 1, distance() )]; curUser.sprite.parent.add( new DeathRay( curUser.sprite.center(), DungeonTilemap.tileCenterToWorld( cell ) ) ); callback.call(); }
@Override protected void fx( Ballistica beam, Callback callback ) { curUser.sprite.parent.add( new Beam.LightRay(curUser.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(beam.collisionPos))); callback.call(); }
@Override protected void fx(Ballistica beam, Callback callback) { curUser.sprite.parent.add( new Beam.HealthRay(curUser.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(beam.collisionPos))); callback.call(); }
@Override protected void fx( Ballistica beam, Callback callback ) { curUser.sprite.parent.add( new Beam.LightRay(curUser.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(beam.collisionPos))); callback.call(); }
@Override protected void fx(Ballistica beam, Callback callback) { curUser.sprite.parent.add( new Beam.HealthRay(curUser.sprite.center(), DungeonTilemap.raisedTileCenterToWorld(beam.collisionPos))); callback.call(); }
@Override public void onComplete( Animation anim ) { if (animCallback != null) { Callback executing = animCallback; animCallback = null; executing.call(); } else { if (anim == attack) { idle(); ch.onAttackComplete(); } else if (anim == operate) { idle(); ch.onOperateComplete(); } } }
@Override public void update() { super.update(); if ((delay += Game.elapsed) < DELAY) { sprite.x = x; sprite.y = y; } else { sprite.point(end); killAndErase(); Actor.remove(Pushing.this); if (callback != null) callback.call(); next(); } } }
@Override public void update() { super.update(); if ((delay += Game.elapsed) < DELAY) { sprite.x = x; sprite.y = y; } else { sprite.point(end); killAndErase(); Actor.remove(Pushing.this); if (callback != null) callback.call(); next(); } } }