当前位置: 首页>>代码示例>>Java>>正文


Java EaseLinear类代码示例

本文整理汇总了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()));
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:9,代码来源:TabSprite.java

示例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;
    }
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:15,代码来源:NoteBookSprite.java

示例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;
    }
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:16,代码来源:NoteBookSprite.java

示例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()));
    }
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:9,代码来源:NoteBookSprite.java

示例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()));
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:5,代码来源:TabSprite.java

示例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()));
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:7,代码来源:CachoSprite.java

示例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()));
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:7,代码来源:CachoSprite.java

示例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()));
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:6,代码来源:NoteBookSprite.java

示例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()));
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:7,代码来源:NoteBookSprite.java

示例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()));
    }
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:7,代码来源:NoteBookSprite.java

示例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()));
    }
}
 
开发者ID:viniciusDSL,项目名称:One-Cachito,代码行数:7,代码来源:NoteBookSprite.java

示例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());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:BaseSingleValueSpanParticleModifier.java

示例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());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:BaseTripleValueSpanParticleModifier.java

示例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());
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:MoveModifier.java

示例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());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:ScaleParticleModifier.java


注:本文中的org.andengine.util.modifier.ease.EaseLinear类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。