/**********************************************************************
This file is part of Crack dot Com's free source code release of Golgotha.
for information about compiling & licensing issues visit this URL
 If that doesn't help, contact Jonathan Clark at 
  golgotha_source@usa.net (Subject should have "GOLG" in it) 
***********************************************************************/

#ifndef DEBRIS_HH
#define DEBRIS_HH

#include "g1_object.hh"
#include "player.hh"
#include "path.hh"
#include "objs/model_draw.hh"

class g1_solid_class;
class g1_map_piece_class;

class g1_debris_class : public g1_object_class
{
protected:
  enum { MAX_DEBRIS = 200 };
  i4_3d_vector debris[MAX_DEBRIS],ldebris[MAX_DEBRIS];
  void make_chunk(int i);
  int type;
  i4_float rad, strength;
public:
  enum
  {
    TORNADO = 0,
    RING_CHUNKS,
  };
  virtual i4_float occupancy_radius() const { return 0.7; }

  g1_debris_class(g1_object_type id, g1_loader_class *fp);
  virtual void save(g1_saver_class *fp);

  virtual void setup(i4_float sx, i4_float sy, i4_float sz, int type);

  virtual void draw(g1_draw_context_class *context);
  virtual void think();
};

#endif