コード例 #1
0
 public Person() {
   setRandomSex();
   setRandomName();
   setRandomHairGene();
   setRandomEyeGene();
   setRandomAge();
   setRandomAttributeList();
   setRandomPosX();
   setRandomPosY();
   setFace();
 }
コード例 #2
0
 public Person(Gene hairGene, Gene eyeGene, int age, int posX, int posY) {
   this.hairGene = hairGene;
   setHairColor();
   this.eyeGene = eyeGene;
   setEyeColor();
   this.age = age;
   setRandomSex();
   setRandomName();
   setRandomAttributeList();
   this.posX = posX;
   this.posY = posY;
   setFace();
 }