// CSE 142 Homework 8 (Critter Safari) // Authors: Marty Stepp and Stuart Reges // // Stone objects are displayed as S and always stay put. // They always pick ROAR in a fight. // import java.awt.*; public class Stone implements Critter { public int fight(String opponent) { return ROAR; // good ol' ROAR... nothing beats that! } public Color getColor() { return Color.GRAY; // gray } public int getMove(CritterInfo info) { return CENTER; // does not move } public String toString() { return "S"; // displays stone as S } }