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

Last change on this file since 80 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_SUPERGUN_HH
10#define G1_SUPERGUN_HH
11
12#include "sound/sound.hh"
13#include "objs/map_piece.hh"
14
15class g1_supergun_class : public g1_map_piece_class
16{
17protected:
18  g1_mini_object        *muzzle;
19  i4_float target_angle, target_pitch;
20  i4_float target_groundspeed, target_zspeed;
21  int time;
22  int mode;
23public:
24  g1_supergun_class(g1_object_type id, g1_loader_class *fp);
25  virtual void save(g1_saver_class *fp);
26     
27  enum { ORIGNAL_RUMBLE_VOLUME=I4_SOUND_VOLUME_LEVELS/8 };
28
29  virtual i4_bool suggest_new_attack_target(g1_object_class *new_target, g1_fire_range_type range);
30  virtual g1_fire_range_type range() { return G1_FIRE_RANGE_1; }
31
32  virtual void fire();
33  virtual void think();
34  virtual void setup(i4_float x, i4_float y, g1_object_class *creator);
35
36  virtual i4_bool deploy_to(float x, float y);
37
38  virtual i4_bool occupy_location()
39  {
40    int ret;
41    if (ret = g1_object_class::occupy_location_model(draw_params))
42      get_terrain_info();
43    return ret;
44  }
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.