beam_weapon.hh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #ifndef G1_BEAM_WEAPON_HH
  9. #define G1_BEAM_WEAPON_HH
  10. #include "g1_object.hh"
  11. #include "objs/model_draw.hh"
  12. #include "player_type.hh"
  13. #include "path.hh"
  14. #include "objs/smoke_trail.hh"
  15. #include "sound_man.hh"
  16. class g1_solid_class;
  17. class g1_map_piece_class;
  18. class g1_beam_weapon_class : public g1_object_class
  19. {
  20. protected:
  21. g1_typed_reference_class<g1_object_class> who_fired_me;
  22. g1_typed_reference_class<g1_object_class> track_object;
  23. g1_typed_reference_class<g1_smoke_trail_class> smoke_trail;
  24. i4_3d_vector end_point;
  25. float range;
  26. // g1_voice_class *fire_sound; sfxfix
  27. int idle_ticks, should_draw;
  28. public:
  29. g1_beam_weapon_class(g1_object_type id, g1_loader_class *fp);
  30. virtual void setup(const i4_3d_vector &pos,
  31. const i4_3d_vector &dir,
  32. g1_object_class *this_guy_fired_me,
  33. float range);
  34. virtual void think();
  35. void unoccupy_location();
  36. i4_bool occupy_location();
  37. virtual void draw(g1_draw_context_class *context);
  38. };
  39. #endif