Android Open Source - androidtbsgame Animation Properties






From Project

Back to project page androidtbsgame.

License

The source code is released under:

MIT License

If you think the Android project androidtbsgame listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.mmssb.androidtbsgame.andengine.units;
/*from   w  w  w.j a  v a2s  .c  o  m*/
/**
 * @author Manu
 * 
 */
public class AnimationProperties {
  private long[] tileDuration;
  private int startTile;
  private int endTile;
  private boolean loop;

  /**
   * Creates an instance of {@link AnimationProperties}
   * 
   * @param tileDuration
   *            the duration for each tile
   * @param startTile
   *            first tile to show
   * @param endTile
   *            last tile to show
   * @param loop
   *            true = loop animation
   */
  public AnimationProperties(long[] tileDuration, int startTile, int endTile,
      boolean loop) {
    this.tileDuration = tileDuration;
    this.startTile = startTile;
    this.endTile = endTile;
    this.loop = loop;
  }

  public long[] getTileDuration() {
    return tileDuration;
  }

  public void setTileDuration(long[] tileDuration) {
    this.tileDuration = tileDuration;
  }

  public int getStartTile() {
    return startTile;
  }

  public void setStartTile(int startTile) {
    this.startTile = startTile;
  }

  public int getEndTile() {
    return endTile;
  }

  public void setEndTile(int endTile) {
    this.endTile = endTile;
  }

  public boolean isLoop() {
    return loop;
  }

  public void setLoop(boolean loop) {
    this.loop = loop;
  }
}




Java Source Code List

de.mmssb.androidtbsgame.andengine.BoardMap.java
de.mmssb.androidtbsgame.andengine.GameControl.java
de.mmssb.androidtbsgame.andengine.MainActivity.java
de.mmssb.androidtbsgame.andengine.Model.java
de.mmssb.androidtbsgame.andengine.entities.board.Board.java
de.mmssb.androidtbsgame.andengine.entities.board.Cell.java
de.mmssb.androidtbsgame.andengine.entities.board.Mark.java
de.mmssb.androidtbsgame.andengine.hud.ImageButtonSprite.java
de.mmssb.androidtbsgame.andengine.hud.ModelHUD.java
de.mmssb.androidtbsgame.andengine.managers.CellControl.java
de.mmssb.androidtbsgame.andengine.managers.Manager.java
de.mmssb.androidtbsgame.andengine.managers.ResourceManager.java
de.mmssb.androidtbsgame.andengine.managers.SceneManager.java
de.mmssb.androidtbsgame.andengine.managers.SharedPreferencesManager.java
de.mmssb.androidtbsgame.andengine.scenes.GameScene.java
de.mmssb.androidtbsgame.andengine.scenes.ModelScene.java
de.mmssb.androidtbsgame.andengine.units.AnimationProperties.java