Created
May 23, 2012 16:40
-
-
Save Jimshii/2776275 to your computer and use it in GitHub Desktop.
nwe shit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class Character { | |
static String name; | |
static int health; | |
static int mana; | |
static int gold; | |
static int xp; | |
static int attack; | |
static int level; | |
public static void setStats() { | |
//setHealth | |
health = 10; | |
//setHumanManaCap | |
Random generator = new Random(); | |
int ranNumber = generator.nextInt(10) + 1; | |
mana = ranNumber; | |
//setGold | |
gold = 0; | |
//setExpandLevel | |
xp = 0; | |
level = 0; | |
//setAttack | |
int ranNum = generator.nextInt(10) + 1; | |
attack = ranNum; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment