// CSE 142 Homework 8 (Critters) // 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 boolean eat() { return false; // stones don't get very hungry } public int fight(String opponent) { return ROAR; // good ol' ROAR... nothing beats that! } public Color getColor() { return Color.GRAY; // stones are gray in color } public int getMove(CritterInfo info) { return CENTER; // a stone does not move } public String toString() { return "S"; // the game displays a stone as an S } }