1313 * LICENSE
1414 */
1515#include " actionmanager.h"
16+ #include " behaviormodule.h"
17+ #include " object.h"
18+ #include " player.h"
19+ #include " specialpower.h"
20+ #include " terrainlogic.h"
1621#ifdef GAME_DLL
1722#include " hooker.h"
1823#endif
@@ -31,3 +36,63 @@ bool ActionManager::Can_Enter_Object(
3136 return false ;
3237#endif
3338}
39+
40+ bool ActionManager::Can_Do_Special_Power (
41+ const Object *obj, const SpecialPowerTemplate *sp_template, CommandSourceType source, unsigned int i, bool b)
42+ {
43+ #ifdef GAME_DLL
44+ return Call_Method<bool ,
45+ ActionManager,
46+ const Object *,
47+ const SpecialPowerTemplate *,
48+ CommandSourceType,
49+ unsigned int ,
50+ bool >(PICK_ADDRESS (0x00497A70 , 0x008E202D ), this , obj, sp_template, source, i, b);
51+ #else
52+ return false ;
53+ #endif
54+ }
55+
56+ bool ActionManager::Can_Do_Special_Power_At_Location (const Object *obj,
57+ const Coord3D *loc,
58+ CommandSourceType source,
59+ const SpecialPowerTemplate *sp_template,
60+ const Object *object_in_way,
61+ unsigned int i,
62+ bool b)
63+ {
64+ #ifdef GAME_DLL
65+ return Call_Method<bool ,
66+ ActionManager,
67+ const Object *,
68+ const Coord3D *,
69+ CommandSourceType,
70+ const SpecialPowerTemplate *,
71+ const Object *,
72+ unsigned int ,
73+ bool >(PICK_ADDRESS (0x004972F0 , 0x008E1907 ), this , obj, loc, source, sp_template, object_in_way, i, b);
74+ #else
75+ return false ;
76+ #endif
77+ }
78+
79+ bool ActionManager::Can_Do_Special_Power_At_Object (const Object *obj,
80+ const Object *target,
81+ CommandSourceType source,
82+ const SpecialPowerTemplate *sp_template,
83+ unsigned int i,
84+ bool b)
85+ {
86+ #ifdef GAME_DLL
87+ return Call_Method<bool ,
88+ ActionManager,
89+ const Object *,
90+ const Object *,
91+ CommandSourceType,
92+ const SpecialPowerTemplate *,
93+ unsigned int ,
94+ bool >(PICK_ADDRESS (0x00497530 , 0x008E1AEB ), this , obj, target, source, sp_template, i, b);
95+ #else
96+ return false ;
97+ #endif
98+ }
0 commit comments