示例#1
0
 /** Diseases itself */
 public void disease() {
   if (summative.rand.nextInt(100) < virulence) {
     diseased = true;
     Point location = summative.getLocation(this);
     summative.addToLog(
         getName() + " at " + location.x + "," + location.y + " caught Jay's Plague.");
   }
 }