Пример #1
0
 public AnimacionFuego(Celda c, GUI g) {
   this.c = c;
   this.g = g;
   stop = false;
   fg = new FuegoGrafico(c.getX(), c.getY(), g.getCargadorGrafico());
   this.g.agregarJuego(fg.getGrafico(), 2);
 }
Пример #2
0
  public void run() {

    while (!stop) {
      c.setFuego(true);
      fg.iniciar();
      c.setFuego(false);
      g.sacarJuego(fg.getGrafico());
      g.repaint();
      fg = null;
      this.detener();
    }
  }