Android Open Source - TokenTracker Card






From Project

Back to project page TokenTracker.

License

The source code is released under:

GNU General Public License

If you think the Android project TokenTracker 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.ekflagristoj.tokentracker.util;
// w w  w  .  j a v a 2s  .co  m
import com.ekflagristoj.tokentracker.util.Token;


public class Card
{
  //Token the card is for
  public Token tokenType;
  //How many tokens are in this physical card stack
  private int stackNum;
  //Is the stack tapped?
  private boolean tapped;
  
  //Mutators
  public void setTokenType( Token value )
  {
    this.tokenType = value;
  }
  public void setStackNum( int value )
  {
    this.stackNum = value;
  }
  public void setTapped( boolean value ) {
    this.tapped = !this.tapped;
  }
  //Accessors
  public Token getTokenType()
  {
    return this.tokenType;
  }
  public int getStackNum()
  {
    return this.stackNum;
  }

  
  //Constructor
  public Card( Token type, int quantity )
  {
    this.setTokenType( type );
    this.setStackNum( quantity );
  }
  
  public boolean isTapped() {
    return this.tapped;
  }
}




Java Source Code List

com.ekflagristoj.tokentracker.CreatePlayerActivity.java
com.ekflagristoj.tokentracker.CreateTokenActivity.java
com.ekflagristoj.tokentracker.MainActivity.java
com.ekflagristoj.tokentracker.RandomizerActivity.java
com.ekflagristoj.tokentracker.SpawnTokenActivity.java
com.ekflagristoj.tokentracker.util.Card.java
com.ekflagristoj.tokentracker.util.DatabaseHelper.java
com.ekflagristoj.tokentracker.util.Player.java
com.ekflagristoj.tokentracker.util.Randomizer.java
com.ekflagristoj.tokentracker.util.TokenDataSource.java
com.ekflagristoj.tokentracker.util.Token.java