Back to project page project2.
The source code is released under:
MIT License
If you think the Android project project2 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 team2.scdm; //from ww w . j ava 2 s . c om public class Item { // These are possible values for the strength/Weapons: public static final int WOODEN_SWORD = 3; public static final int IRON_SWORD = 4; public static final int STEEL_SWORD = 5; public static final int MAGIC_SWORD = 6; // These are possible values for the defense/Armor: public static final int CLOTHES = 8; public static final int LEATHER_ARMOR = 5; public static final int PLATE_MALE = 4; public static final int CLOWN_SUIT = 7; public static final int[] items = {WOODEN_SWORD, IRON_SWORD, STEEL_SWORD, MAGIC_SWORD, CLOTHES, LEATHER_ARMOR, PLATE_MALE, CLOWN_SUIT}; protected int value; // strength or defense depending on armor or weapon public Item(int value) { this.value = value; } public int getValue() { return value; } }