source: golgotha/src/golg/objs/beam_weapon.hh

Last change on this file was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.5 KB
Line 
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
9#ifndef G1_BEAM_WEAPON_HH
10#define G1_BEAM_WEAPON_HH
11
12#include "g1_object.hh"
13#include "objs/model_draw.hh"
14#include "player_type.hh"
15#include "path.hh"
16#include "objs/smoke_trail.hh"
17#include "sound_man.hh"
18
19class g1_solid_class;
20class g1_map_piece_class;
21
22class g1_beam_weapon_class : public g1_object_class
23{
24protected: 
25  g1_typed_reference_class<g1_object_class> who_fired_me;
26  g1_typed_reference_class<g1_object_class> track_object;
27  g1_typed_reference_class<g1_smoke_trail_class> smoke_trail;
28
29  i4_3d_vector end_point;
30  float range;
31 
32  //  g1_voice_class *fire_sound; sfxfix
33  int idle_ticks, should_draw;
34public:
35  g1_beam_weapon_class(g1_object_type id, g1_loader_class *fp);
36
37  virtual void setup(const i4_3d_vector &pos,
38                     const i4_3d_vector &dir,
39                     g1_object_class *this_guy_fired_me,
40                     float range);
41 
42  virtual void think();
43  void unoccupy_location();
44  i4_bool occupy_location();
45
46  virtual void draw(g1_draw_context_class *context);
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.