/**********************************************************************
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 G1_SUPER_MORTAR_HH
#define G1_SUPER_MORTAR_HH


#include "g1_object.hh"
#include "player_type.hh"
#include "path.hh"
#include "sound_man.hh"

class g1_solid_class;
class g1_map_piece_class;
class g1_smoke_trail_class;
class g1_map_piece_class;
class g1_super_mortar_class : public g1_object_class
{
  enum { DATA_VERSION=3 };

protected:  

  g1_typed_reference_class who_fired_me;
  g1_typed_reference_class smoke_trail;
  
  void delete_smoke();

public:
  //  g1_voice_class *rumble_sound;  sfxfix

  i4_float z_speed;
  i4_3d_vector vel;

  g1_super_mortar_class(g1_object_type id, g1_loader_class *fp);
  virtual void save(g1_saver_class *fp);
  
  virtual void setup(const i4_3d_vector &pos,
                     const i4_3d_vector &dir,
                     g1_object_class *this_guy_fired_me);
  
  virtual void think();
  
  virtual i4_bool move(i4_3d_vector &vel);

  void draw(g1_draw_context_class *context);
};

#endif