예제 #1
0
 public ArrayList<Decision> getOtherDecisions(ArrayList<Creature> other) {
   ArrayList<Decision> toReturn = new ArrayList<Decision>();
   for (Creature c : other) {
     toReturn.add(c.getMyDecisions());
   }
   return toReturn;
 }
예제 #2
0
 // TODO: método melhor de briga
 public void fight(Creature other) {
   float r = p.random(0, 1);
   if (r < 5) { // substituir por stregth
     other.health -= 1;
   } else {
     health -= 1;
   }
 }