本文整理汇总了Java中com.watabou.noosa.tweeners.Tweener类的典型用法代码示例。如果您正苦于以下问题:Java Tweener类的具体用法?Java Tweener怎么用?Java Tweener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Tweener类属于com.watabou.noosa.tweeners包,在下文中一共展示了Tweener类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@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) {
synchronized (this) {
isMoving = false;
motion.killAndErase();
motion = null;
ch.onMotionComplete();
notifyAll();
}
}
}
示例2: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@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) {
synchronized (this) {
isMoving = false;
motion.killAndErase();
motion = null;
ch.onMotionComplete();
notifyAll();
}
}
}
示例3: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@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;
}
}
示例4: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@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;
}
}
示例5: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@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;
ch.onMotionComplete();
}
}
示例6: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete( Tweener tweener ) {
if (tweener == jumpTweener) {
if (visible && Dungeon.level.water[ch.pos] && !ch.flying) {
GameScene.ripple( ch.pos );
}
if (jumpCallback != null) {
jumpCallback.call();
}
} else if (tweener == motion) {
synchronized (this) {
isMoving = false;
motion.killAndErase();
motion = null;
ch.onMotionComplete();
notifyAll();
}
}
}
示例7: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete(Tweener tweener) {
kill();
if (callback != null) {
callback.call();
}
}
示例8: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete( Tweener tweener ) {
kill();
if (callback != null) {
callback.call();
}
}
示例9: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete( Tweener tweener ) {
if (tweener == motion) {
isMoving = false;
motion.killAndErase();
motion = null;
ch.onMotionComplete();
}
}
示例10: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@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 {
super.onComplete( tweener );
}
}
示例11: move
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
public void move(int from, int to) {
if (getParent() != null) {
Tweener motion = new PosTweener(this, DungeonTilemap.tileToWorld(to).offset(centerShift), 0.1f);
motion.listener = this;
getParent().add(motion);
if (getVisible() && Dungeon.level.water[from]) {
GameScene.ripple(from);
}
}
}
示例12: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete(Tweener tweener) {
if (tweener == jumpTweener) {
if (getVisible() && Dungeon.level.water[ch.getPos()] && !ch.isFlying()) {
GameScene.ripple(ch.getPos());
}
if (jumpCallback != null) {
jumpCallback.call();
}
} else {
super.onComplete(tweener);
}
}
示例13: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete(Tweener tweener) {
if (tweener == motion) {
isMoving = false;
motion.killAndErase();
motion = null;
}
}
示例14: onComplete
import com.watabou.noosa.tweeners.Tweener; //导入依赖的package包/类
@Override
public void onComplete(Tweener tweener) {
}