本文整理汇总了Java中org.andengine.util.modifier.ease.EaseLinear类的典型用法代码示例。如果您正苦于以下问题:Java EaseLinear类的具体用法?Java EaseLinear怎么用?Java EaseLinear使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EaseLinear类属于org.andengine.util.modifier.ease包,在下文中一共展示了EaseLinear类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: show
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void show(){
clearEntityModifiers();
int over = 4;
if(current -1 == GameManager.getInstance().currentPlayer){
over = 2;
}
this.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION,this.getX(),GameActivity.WORLD_WIDTH-this.getWidth()/over, EaseLinear.getInstance()));
}
示例2: show
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void show(){
if(!locked) {
clearEntityModifiers();
if(!force) {
showTab();
}
this.registerEntityModifier(
new MoveYModifier(Constants.ANIMATION_DURATION, this.getY(), GameActivity.WORLD_HEIGHT - GameActivity.WORLD_HEIGHT / 3,
EaseLinear.getInstance()
));
GameManager.getInstance().hideTabs();
visible = true;
}
}
示例3: hide
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void hide(){
if(justShow){
left.hide();
right.hide();
}
justShow = false;
if(!locked) {
hideScoreButtons();
clearEntityModifiers();
hideTab();
this.registerEntityModifier(new MoveYModifier(Constants.ANIMATION_DURATION, this.getY(), GameActivity.WORLD_HEIGHT + this.getHeight() / 2, EaseLinear.getInstance()));
GameManager.getInstance().showTabs();
visible = false;
}
}
示例4: outTab
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void outTab(){
if(!isTabOut) {
isTabOut=true;
this.tabSprite.clearEntityModifiers();
this.tabSprite.setCurrentTileIndex(0);
this.tabSprite.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION, this.tabSprite.getX(), -this.tabSprite.getWidth() / 2, EaseLinear.getInstance()));
}
}
示例5: hide
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void hide(){
clearEntityModifiers();
this.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION,this.getX(),this.getWidth() + GameActivity.WORLD_WIDTH-this.getWidth()/4, EaseLinear.getInstance()));
}
示例6: moveDown
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void moveDown(){
GameManager.getInstance().hideTabs();
GameManager.getInstance().noteBookSprite.moveOut();
this.clearEntityModifiers();
this.registerEntityModifier(new MoveYModifier(time, this.getY(), baseY - 270, EaseLinear.getInstance()));
}
示例7: moveUp
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void moveUp(){
GameManager.getInstance().showTabs();
GameManager.getInstance().noteBookSprite.moveIn();
this.clearEntityModifiers();
this.registerEntityModifier(new MoveYModifier(time, this.getY(), baseY, EaseLinear.getInstance()));
}
示例8: showTab
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void showTab(){
this.tabSprite.setCurrentTileIndex(4);
this.tabSprite.clearEntityModifiers();
this.tabSprite.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION, this.tabSprite.getX(),this.tabSprite.getWidth() / 2, EaseLinear.getInstance()));
}
示例9: hideTab
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void hideTab(){
isTabOut=false;
this.tabSprite.clearEntityModifiers();
this.tabSprite.setCurrentTileIndex(0);
this.tabSprite.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION, this.tabSprite.getX(), -25 + this.tabSprite.getWidth() / 2, EaseLinear.getInstance()));
}
示例10: moveIn
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void moveIn() {
if(!GameManager.getInstance().cachoSprite.haveDiceToRoll()) {
this.tabSprite.clearEntityModifiers();
this.tabSprite.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION, this.tabSprite.getX(), -25 + this.tabSprite.getWidth() / 2, EaseLinear.getInstance()));
}
}
示例11: moveOut
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public void moveOut() {
if(!locked) {
this.tabSprite.clearEntityModifiers();
this.tabSprite.registerEntityModifier(new MoveXModifier(Constants.ANIMATION_DURATION, this.tabSprite.getX(), -this.tabSprite.getWidth() / 2, EaseLinear.getInstance()));
}
}
示例12: BaseSingleValueSpanParticleModifier
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public BaseSingleValueSpanParticleModifier(final float pFromTime, final float pToTime, final float pFromValue, final float pToValue) {
this(pFromTime, pToTime, pFromValue, pToValue, EaseLinear.getInstance());
}
示例13: BaseTripleValueSpanParticleModifier
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public BaseTripleValueSpanParticleModifier(final float pFromTime, final float pToTime, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final float pFromValueC, final float pToValueC) {
this(pFromTime, pToTime, pFromValueA, pToValueA, pFromValueB, pToValueB, pFromValueC, pToValueC, EaseLinear.getInstance());
}
示例14: MoveModifier
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public MoveModifier(final float pDuration, final float pFromX, final float pFromY, final float pToX, final float pToY, final IEntityModifierListener pEntityModifierListener) {
super(pDuration, pFromX, pToX, pFromY, pToY, pEntityModifierListener, EaseLinear.getInstance());
}
示例15: ScaleParticleModifier
import org.andengine.util.modifier.ease.EaseLinear; //导入依赖的package包/类
public ScaleParticleModifier(final float pFromTime, final float pToTime, final float pFromScaleX, final float pToScaleX, final float pFromScaleY, final float pToScaleY) {
this(pFromTime, pToTime, pFromScaleX, pToScaleX, pFromScaleY, pToScaleY, EaseLinear.getInstance());
}