123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #ifndef __OU_GOD_H
- #define __OU_GOD_H
- #ifndef __OUNIT_H
- #include <OUNIT.h>
- #endif
- #ifndef __OFIRM_H
- #include <OFIRM.h>
- #endif
- #pragma pack(1)
- class UnitGod : public Unit
- {
- public:
- short god_id;
- short base_firm_recno;
- char cast_power_type;
- short cast_origin_x, cast_origin_y;
- short cast_target_x, cast_target_y;
- public:
- virtual void init_derived();
- void pre_process();
- int process_attack();
- void disp_info(int refreshFlag);
- void detect_info();
- void cast_power(int castXLoc, int castYLoc);
-
- virtual UCHAR crc8();
- virtual void clear_ptr();
- private:
- void consume_power_pray_points();
- void cast_on_loc(int castXLoc, int castYLoc);
- void cast_on_unit(int unitRecno, int divider);
- void cast_on_worker(Worker* workerPtr, int nationRecno, int divider);
- void viking_summon_rain();
- void viking_summon_tornado();
- void persian_cast_power(int unitRecno, int divider);
- void japanese_cast_power(int unitRecno, int divider);
- void maya_cast_power(int unitRecno, int divider);
- #ifdef AMPLUS
- void egyptian_cast_power(int unitRecno, int divider);
- void indian_cast_power(int unitRecno, int divider);
- void zulu_cast_power(int unitRecno, int divider);
- #endif
- void persian_cast_power(Worker* workerPtr, int nationRecno, int divider);
- void japanese_cast_power(Worker* workerPtr, int nationRecno, int divider);
- void maya_cast_power(Worker* workerPtr, int nationRecno, int divider);
- #ifdef AMPLUS
- void egyptian_cast_power(Worker *workerPtr, int nationRecno, int divider);
- void indian_cast_power(Worker *workerPtr, int nationRecno, int divider);
- void zulu_cast_power(Worker *workerPtr, int nationRecno, int divider);
- #endif
-
- void process_ai();
- void think_dragon();
- void think_maya_god();
- void think_phoenix();
- void think_viking_god();
- void think_persian_god();
- void think_chinese_dragon();
- void think_japanese_god();
- int think_god_attack_target(int& targetXLoc, int& targetYLoc);
- #ifdef AMPLUS
- void think_egyptian_god();
- void think_indian_god();
- void think_zulu_god();
- #endif
- };
- #pragma pack()
- #endif
|