Add files via upload
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,92 @@
|
|||||||
|
package dnd;
|
||||||
|
|
||||||
|
public class Character {
|
||||||
|
private String name;
|
||||||
|
private int age;
|
||||||
|
private int heightFeet;
|
||||||
|
private int heightInch;
|
||||||
|
private int weigth;
|
||||||
|
private String eye;
|
||||||
|
private String hair;
|
||||||
|
private Race race;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param name
|
||||||
|
* @param age
|
||||||
|
* @param heightFeet
|
||||||
|
* @param heightInch
|
||||||
|
* @param weigth
|
||||||
|
* @param eye
|
||||||
|
* @param hair
|
||||||
|
*/
|
||||||
|
public Character(String name, int age,
|
||||||
|
int heightFeet, int heightInch,
|
||||||
|
int weigth, String eye, String hair,
|
||||||
|
Race race) {
|
||||||
|
this.name = name;
|
||||||
|
this.age = age;
|
||||||
|
this.heightFeet = heightFeet;
|
||||||
|
this.heightInch = heightInch;
|
||||||
|
this.weigth = weigth;
|
||||||
|
this.eye = eye;
|
||||||
|
this.hair = hair;
|
||||||
|
this.race = race;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Default constructor
|
||||||
|
*/
|
||||||
|
public Character() {
|
||||||
|
this.name = "null";
|
||||||
|
this.age = 0;
|
||||||
|
this.heightFeet = 0;
|
||||||
|
this.heightInch = 0;
|
||||||
|
this.weigth = 0;
|
||||||
|
this.eye = "null";
|
||||||
|
this.hair = "null";
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the name
|
||||||
|
*/
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the age
|
||||||
|
*/
|
||||||
|
public int getAge() {
|
||||||
|
return age;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the heightFeet
|
||||||
|
*/
|
||||||
|
public int getHeightFeet() {
|
||||||
|
return heightFeet;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the heightInch
|
||||||
|
*/
|
||||||
|
public int getHeightInch() {
|
||||||
|
return heightInch;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the weigth
|
||||||
|
*/
|
||||||
|
public int getWeigth() {
|
||||||
|
return weigth;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the eye
|
||||||
|
*/
|
||||||
|
public String getEye() {
|
||||||
|
return eye;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @return the hair
|
||||||
|
*/
|
||||||
|
public String getHair() {
|
||||||
|
return hair;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package dnd;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class Race {
|
||||||
|
private String raceName;
|
||||||
|
private String ageRange;
|
||||||
|
private int speed;
|
||||||
|
private ArrayList<String> traits;
|
||||||
|
private ArrayList<String> skills;
|
||||||
|
private ArrayList<String> laugnuage;
|
||||||
|
//private Subrace subrase;
|
||||||
|
private ArrayList<String> proficiencies;
|
||||||
|
/**
|
||||||
|
* @param raceName
|
||||||
|
* @param ageRange
|
||||||
|
* @param speed
|
||||||
|
* @param traits
|
||||||
|
* @param skills
|
||||||
|
* @param laugnuage
|
||||||
|
* @param proficiencies
|
||||||
|
*/
|
||||||
|
public Race(String raceName, String ageRange, int speed, ArrayList<String> traits, ArrayList<String> skills,
|
||||||
|
ArrayList<String> laugnuage, ArrayList<String> proficiencies) {
|
||||||
|
this.raceName = raceName;
|
||||||
|
this.ageRange = ageRange;
|
||||||
|
this.speed = speed;
|
||||||
|
this.traits = traits;
|
||||||
|
this.skills = skills;
|
||||||
|
this.laugnuage = laugnuage;
|
||||||
|
this.proficiencies = proficiencies;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package dnd;
|
||||||
|
|
||||||
|
public class dndTestClient {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user