OB_HOMIN.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Seven Kingdoms: Ancient Adversaries
  3. *
  4. * Copyright 1997,1998 Enlight Software Ltd.
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. // Filename : OB_HOMIN.H
  21. // Description : header file for BulletHoming
  22. #ifndef __OB_HOMIN_H
  23. #define __OB_HOMIN_H
  24. #include <OBULLET.h>
  25. #pragma pack(1)
  26. class BulletHoming : public Bullet
  27. {
  28. public:
  29. char max_step;
  30. char target_type;
  31. short target_recno;
  32. short speed;
  33. short origin2_x, origin2_y;
  34. public:
  35. BulletHoming();
  36. ~BulletHoming();
  37. void init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char targetMobileType); // virtual function from obullet.h
  38. void deinit();
  39. void process_move();
  40. // int write_derived_file(File *);
  41. // int read_derived_file(File *);
  42. //-------------- multiplayer checking codes ---------------//
  43. virtual UCHAR crc8();
  44. virtual void clear_ptr();
  45. };
  46. #pragma pack()
  47. #endif