Android Open Source - FriendScore Score Object






From Project

Back to project page FriendScore.

License

The source code is released under:

MIT License

If you think the Android project FriendScore 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 com.prnk.friendscore;
/*www.j  a  v a 2 s  . co  m*/
public class ScoreObject {
  private long id;
  private int score;
  private final int defaultScore = 0;
  
  public ScoreObject() {
    this.score = defaultScore;
  }
  
  public int Score() {
    return this.score;
  }
  
  public long GetId(){
    return this.id;
  }
  
  public void SetId(long identifier){
    this.id = identifier;
  }
  
  public void IncrementScore() {
    this.score++;
  }
  
  public void SetScore(int score) {
    this.score = score;
  }
  
  public void DecrementScore() {
    this.score--;
  }
  
  public void ResetScore() {
    this.score = defaultScore;
  }
}




Java Source Code List

com.prnk.friendscore.DashboardActivity.java
com.prnk.friendscore.DataBaseWrapper.java
com.prnk.friendscore.EditActivity.java
com.prnk.friendscore.GameObject.java
com.prnk.friendscore.PlayerObject.java
com.prnk.friendscore.ScoreObject.java
com.prnk.friendscore.TeamObject.java