daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import info.gridworld.actor.Critter;
  2. import info.gridworld.actor.Actor;
  3. import info.gridworld.grid.Location;
  4. import info.gridworld.grid.Grid;
  5. import info.gridworld.actor.ActorWorld;
  6. import java.awt.Color;
  7.  
  8. /**
  9.  * Tests the Mammal class.
  10.  *
  11.  * @author Shaan Iqbal
  12.  * @version 02/02/2012
  13.  */
  14. public class MammalDriver
  15. {
  16.     public static void main(String[] args)
  17.     {
  18.         ActorWorld world = new ActorWorld();
  19.        
  20.         Mammal male1 = new Mammal("M", "Arnold");
  21.         Mammal male2 = new Mammal("M", "Joe");
  22.         Mammal male3 = new Mammal("M", "Adam");
  23.  
  24.         Mammal female1 = new Mammal("F", "Jane");
  25.         Mammal female2 = new Mammal("F", "Eve");
  26.         Mammal female3 = new Mammal ("F", "Megan");
  27.        
  28.         world.add(male1);
  29.         world.add(male2);
  30.         world.add(male3);
  31.         world.add(female1);
  32.         world.add(female2);
  33.         world.add(female3);
  34.        
  35.         world.show();
  36.        
  37.  
  38.  
  39.     }
  40.  
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top