Skip to content

Instantly share code, notes, and snippets.

@thealexbaron
Forked from anonymous/gist:2a651ce37a403a6202eb
Last active August 29, 2015 14:13
Show Gist options
  • Save thealexbaron/da997825b21e63bb9146 to your computer and use it in GitHub Desktop.
Save thealexbaron/da997825b21e63bb9146 to your computer and use it in GitHub Desktop.
import java.util.Random;
public class Fields
{
Random dice = new Random();
int oneDThree;
public void getRand()
{
oneDThree = dice.nextInt(3);
}
public void createCreature(String name, int attack, int defense,
String armorName, String weaponName)
{
}
// creating the array to hold the 3 monsters for the first area
String creatureArray[] = {"Rat", "Tiger", "Bandit"};
int attackArray[] = {10, 15, 20};
int defenseArray[] = {8, 20, 16};
String armorArray[] = {"Fur", "Fur", "Chain Mail"};
String weaponArray[] = {"Claws", "Claws", "Broad Sword"} ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment