import java.awt.Graphics;
import java.awt.Color;
import java.awt.Image;
class Base extends GameObject
{
int x, y, w, h;
Image baseImage;
MissileCommando parent;
Base (int x, int y, int w, int h, Image baseImage, MissileCommando parent)
{
this.x = x;
this.y = y;
this.w = w;
this.h = h;
this.baseImage = baseImage;
this.parent = parent;
}
void erase (Graphics g)
{
g.setColor (skyColor);
g.fillRect (x, y, w, h);
}
void paint (Graphics g)
{
if (explode)
{
//erase (g);
alive = false;
explode = false;
}
if (alive)
{
//g.setColor (Color.blue);
//g.fillRect (x, y, w, h);
g.drawImage (baseImage, x, y, w, h, parent);
}
}
void rebuild ()
{
alive = true;
explode = false;
}
}