peontank.hh 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef G1_PEON_TANK_HH
  9. #define G1_PEON_TANK_HH
  10. #include "objs/map_piece.hh"
  11. class g1_peon_tank_class : public g1_map_piece_class
  12. {
  13. protected:
  14. g1_mini_object *turret;
  15. i4_float guard_angle;
  16. int guard_time;
  17. public:
  18. g1_peon_tank_class(g1_object_type id, g1_loader_class *fp);
  19. virtual void save(g1_saver_class *fp);
  20. virtual void draw(g1_draw_context_class *context);
  21. virtual void fire();
  22. virtual void think();
  23. i4_float turret_kick,lturret_kick; //just an aesthetic thing, the turret kicks back when fired
  24. int get_chunk_names(char **&list);
  25. };
  26. #endif