source: golgotha/src/golg/objs/super_mortar.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 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_SUPER_MORTAR_HH
10#define G1_SUPER_MORTAR_HH
11
12
13#include "g1_object.hh"
14#include "player_type.hh"
15#include "path.hh"
16#include "sound_man.hh"
17
18class g1_solid_class;
19class g1_map_piece_class;
20class g1_smoke_trail_class;
21class g1_map_piece_class;
22class g1_super_mortar_class : public g1_object_class
23{
24  enum { DATA_VERSION=3 };
25
26protected: 
27
28  g1_typed_reference_class<g1_object_class> who_fired_me;
29  g1_typed_reference_class<g1_smoke_trail_class> smoke_trail;
30 
31  void delete_smoke();
32
33public:
34  //  g1_voice_class *rumble_sound;  sfxfix
35
36  i4_float z_speed;
37  i4_3d_vector vel;
38
39  g1_super_mortar_class(g1_object_type id, g1_loader_class *fp);
40  virtual void save(g1_saver_class *fp);
41 
42  virtual void setup(const i4_3d_vector &pos,
43                     const i4_3d_vector &dir,
44                     g1_object_class *this_guy_fired_me);
45 
46  virtual void think();
47 
48  virtual i4_bool move(i4_3d_vector &vel);
49
50  void draw(g1_draw_context_class *context);
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.