[80] | 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_ELECTRIC_CAR_HH
|
---|
| 10 | #define G1_ELECTRIC_CAR_HH
|
---|
| 11 |
|
---|
| 12 | #include "objs/map_piece.hh"
|
---|
| 13 |
|
---|
| 14 | class g1_electric_car_class : public g1_map_piece_class
|
---|
| 15 | {
|
---|
| 16 |
|
---|
| 17 | public:
|
---|
| 18 | enum {DATA_VERSION=2};
|
---|
| 19 |
|
---|
| 20 | enum {NUM_ARC_POINTS=5};
|
---|
| 21 |
|
---|
| 22 | typedef struct
|
---|
| 23 | {
|
---|
| 24 | i4_3d_vector lposition,position;
|
---|
| 25 | } arc_point;
|
---|
| 26 |
|
---|
| 27 | void new_arc_points(const i4_3d_vector &laser1,
|
---|
| 28 | const i4_3d_vector &laser2,
|
---|
| 29 | const i4_3d_vector &target);
|
---|
| 30 | void copy_old_points();
|
---|
| 31 |
|
---|
| 32 | arc_point arc_points1[NUM_ARC_POINTS];
|
---|
| 33 | arc_point arc_points2[NUM_ARC_POINTS];
|
---|
| 34 | i4_bool firing;
|
---|
| 35 |
|
---|
| 36 | ~g1_electric_car_class();
|
---|
| 37 |
|
---|
| 38 | g1_electric_car_class(g1_object_type id, g1_loader_class *fp);
|
---|
| 39 | virtual void save(g1_saver_class *fp);
|
---|
| 40 |
|
---|
| 41 | enum electric_car_strategy {SIT,RELOAD,REFUEL,ATTACK,KAMIKAZE};
|
---|
| 42 |
|
---|
| 43 | virtual void die();
|
---|
| 44 | virtual void fire(); //FIRE FIRE FIRE!!!!
|
---|
| 45 | virtual void post_think();
|
---|
| 46 |
|
---|
| 47 | virtual void draw(g1_draw_context_class *context);
|
---|
| 48 |
|
---|
| 49 | electric_car_strategy strategy;
|
---|
| 50 | g1_mini_object *wheel;
|
---|
| 51 | g1_mini_object *gun_left;
|
---|
| 52 | g1_mini_object *gun_right;
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | i4_bool can_attack(g1_object_class *who) const;
|
---|
| 56 | };
|
---|
| 57 |
|
---|
| 58 | #endif
|
---|