예제 #1
0
파일: Unit.java 프로젝트: jacarandang/CS140
 public int compareTo(Unit u) {
   return (int) (u.s.fitness() * 100 - s.fitness() * 100);
 }
예제 #2
0
파일: Unit.java 프로젝트: jacarandang/CS140
 public String toString() {
   return trm + "," + prm + "," + wtm + "," + tkm + "," + ped + "," + s.fitness();
 }