Pared.java

   1 
   2 /**
   3  * @author ULDY SOTO
   4  * @author CLAUDIA MATEUS
   5  */
   6 
   7 import java.awt.Color;
   8 import java.awt.Graphics;
   9 
  10 public class Pared  extends ObjetoGrafico{
  11         public Pared (int x, int y, int a, int e) {
  12                 super(x,y, a, e);               
  13         }
  14         public void paint (Graphics g){
  15                 if(visible){
  16                         g.setColor(Color.black);
  17                         g.fillRect(getPosX() + (int)(getAncho() * 0), getPosY() + (int)(getAlto() * 0), (int)(getAncho() * 1), (int)(getAlto() * 1));
  18                 } 
  19         }
  20 }

CategoryJava | CategoryProgramacion


CategoryProgramacion

Java/Programas/MazeDallcu/Pared.java (last edited 2008-11-13 13:34:08 by UldySoto)