SHARE
TWEET

Untitled

a guest Jan 12th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package assignment05;
  2.  
  3. import java.awt.Color;
  4.  
  5. public class Driver
  6. {
  7.  
  8.     /**
  9.      * @param args
  10.      */
  11.     public static void main(String[] args)
  12.     {
  13.         Color[][] wallPaints = {{Color.blue, Color.green}, {Color.red, Color.yellow}};
  14.        
  15.         Bathroom bathroom = new Bathroom(10, 15, wallPaints[0], Color.red, "Wood", House.RoomName.BATHROOM, 1, 1, 1);
  16.         Bedroom bedroom = new Bedroom(30, 30, wallPaints[1], Color.blue, "Wood", House.RoomName.BEDROOM, true);
  17.         Den den = new Den(30, 30, wallPaints[0], Color.red, "Wood", House.RoomName.DEN);
  18.         FamilyRoom familyRoom = new FamilyRoom(40, 30, wallPaints[1], Color.blue, "Wood", House.RoomName.FAMILYROOM);
  19.         Garage garage = new Garage(30, 30, wallPaints[0], Color.gray, "Cement", House.RoomName.GARAGE, 2);
  20.         Hall hall = new Hall(30, 30, wallPaints[1], Color.gray, "Wood", House.RoomName.HALL);
  21.         Kitchen kitchen = new Kitchen(30, 30, wallPaints[0], Color.white, "Tile", House.RoomName.KITCHEN, "Oven", "Fridge", "Dishwasher", 5);
  22.         LivingRoom livingRoom = new LivingRoom(30, 30, wallPaints[1], Color.red, "Wood", House.RoomName.LIVINGROOM);
  23.         Staircase staircase = new Staircase(30, 30, wallPaints[0], Color.blue, "Wood", House.RoomName.STAIRCASE, 1);
  24.         House house = new House();
  25.        
  26.         house.addRoom(staircase);
  27.         house.addRoom(livingRoom);
  28.         house.addRoom(garage);
  29.         house.addRoom(bedroom);
  30.         house.addRoom(bathroom);
  31.         house.addRoom(hall);
  32.         house.addRoom(kitchen);
  33.         house.addRoom(den);
  34.         house.addRoom(familyRoom);
  35.        
  36.         System.out.println(house.getRooms());
  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