// requires including icons.h
// clear window and redraw animation
void Plane::display(int windowWidth, int windowHeight) const
{
  Coord windowPos;

  windowPos = transformCoordinates(Coord(windowWidth,windowHeight));
  if (!crashed() && !outOfRange()) { // don't draw if crashed or outofrange
    if (getProximity())
      drawIcon(windowPos.x,windowPos.y, planeRedIcon, getNumber());
    else
      drawIcon(windowPos.x,windowPos.y, planeIcon ,getNumber());
  }
}

