Back to project page TokenTracker.
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.
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; } }