Android Open Source - picturepuzzle Win Time






From Project

Back to project page picturepuzzle.

License

The source code is released under:

GNU General Public License

If you think the Android project picturepuzzle 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 me.crr.picturepuzzle;
/*from www  .ja  va 2s. co m*/
import java.io.Serializable;

/**
 * Data wrapper
 * Holds player's finishing time and other data as needed
 * @author Chris
 *
 */


public class WinTime implements Serializable {

  private static final long serialVersionUID = -1834367984330374038L;
  private long time;
  private String name;
  
  public WinTime(long time) {
    super();
    this.time = time;
  }

  public WinTime(long winTime, String name) {
    this.time = winTime;
    this.name = name;
  }

  public String toString(){
    StringBuilder timeAsString = new StringBuilder();
    
    timeAsString.append(name).append('\t')
    .append((time/(1000*60*60)%60)).append(":")
      .append((int)(time/(1000*60)%60)).append(":")
      .append((int)(time/1000)%60); 
    
    return timeAsString.toString();
  }

  public long getTime() {
    // TODO Auto-generated method stub
    return time;
  }

  public String getName() {
    return name;
  }
  
}




Java Source Code List

me.crr.interfaces.AABB.java
me.crr.interfaces.InputManagerReceiver.java
me.crr.interfaces.RenderHost.java
me.crr.picturepuzzle.Drawable.java
me.crr.picturepuzzle.FixedArray.java
me.crr.picturepuzzle.GameActivity.java
me.crr.picturepuzzle.InputManager.java
me.crr.picturepuzzle.MainMenuActivity.java
me.crr.picturepuzzle.PicturePuzzle.java
me.crr.picturepuzzle.PieceTransitionAnimation.java
me.crr.picturepuzzle.Piece.java
me.crr.picturepuzzle.Rectangle.java
me.crr.picturepuzzle.Render.java
me.crr.picturepuzzle.StatsActivity.java
me.crr.picturepuzzle.Texture.java
me.crr.picturepuzzle.WinTime.java