Source of HarryPotterWall.java


  1: 
  2: package maze.harry; 
  3: 
  4: import java.awt.*; 
  5: import maze.*;
  6: 
  7: class HarryPotterWall extends Wall {
  8: 
  9:   public static final Color WALL_COLOR = new Color(178, 34, 34);
 10: 
 11:   public void draw(Graphics g, int x, int y, int w, int h) {
 12:     g.setColor(WALL_COLOR); 
 13:     g.fillRect(x, y, w, h); 
 14:   }
 15: 
 16: }