source: golgotha/src/golg/objs/dropped_bomb.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.4 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_DROPPED_BOMB_HH
10#define G1_DROPPED_BOMB_HH
11
12
13#include "g1_object.hh"
14#include "player_type.hh"
15#include "path.hh"
16
17class g1_solid_class;
18class g1_map_piece_class;
19class g1_smoke_trail_class;
20class g1_map_piece_class;
21class g1_dropped_bomb_class : public g1_object_class
22{
23  enum { DATA_VERSION=3 };
24
25protected: 
26
27  g1_typed_reference_class<g1_object_class> who_fired_me;
28  g1_typed_reference_class<g1_smoke_trail_class> smoke_trail;
29 
30  void delete_smoke();
31
32public:
33  g1_model_draw_parameters draw_params;
34
35  i4_float z_velocity;
36  i4_float speed;
37
38  g1_dropped_bomb_class(g1_object_type id, g1_loader_class *fp);
39  virtual void save(g1_saver_class *fp);
40  virtual void setup(const i4_3d_vector &pos, g1_object_class *this_guy_fired_me);
41 
42  virtual void think();
43 
44  virtual i4_bool move(const i4_3d_vector &vel);
45
46  void draw(g1_draw_context_class *context);
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.