Ares
|
Functions | |
static bool | IsDeactivated (TechnoClass *pThis) |
static eAction | GetAction (TechnoClass *pThis, ObjectClass *pThat=NULL) |
DEFINE_HOOK (447548, BuildingClass_GetCursorOverCell_Deactivated, 6) | |
DEFINE_HOOK (447218, BuildingClass_GetCursorOverObject_Deactivated, 6) | |
DEFINE_HOOK (7404B9, UnitClass_GetCursorOverCell_Deactivated, 6) | |
DEFINE_HOOK (73FD5A, UnitClass_GetCursorOverObject_Deactivated, 5) | |
DEFINE_HOOK (51F808, InfantryClass_GetCursorOverCell_Deactivated, 6) | |
DEFINE_HOOK (51E440, InfantryClass_GetCursorOverObject_Deactivated, 8) | |
DEFINE_HOOK (417F83, AircraftClass_GetCursorOverCell_Deactivated, 6) | |
DEFINE_HOOK (417CCB, AircraftClass_GetCursorOverObject_Deactivated, 5) | |
DEFINE_HOOK (4D74EC, FootClass_ClickedAction_Deactivated, 6) | |
DEFINE_HOOK (443414, BuildingClass_ClickedAction_Deactivated, 6) | |
DEFINE_HOOK (4D7D58, FootClass_140_Deactivated, 6) | |
DEFINE_HOOK (4436F7, BuildingClass_140_Deactivated, 5) | |
DEFINE_HOOK (5200B3, InfantryClass_UpdatePanic, 6) | |
DEFINE_HOOK (51D0DD, InfantryClass_Scatter, 6) |
DEFINE_HOOK | ( | 447548 | , |
BuildingClass_GetCursorOverCell_Deactivated | , | ||
6 | |||
) |
{ GET(BuildingClass *, pThis, ESI); if(IsDeactivated(pThis)) { R->EBX<eAction>(GetAction(pThis)); return 0x44776D; } return 0; }
DEFINE_HOOK | ( | 447218 | , |
BuildingClass_GetCursorOverObject_Deactivated | , | ||
6 | |||
) |
{ GET(BuildingClass *, pThis, ESI); GET_STACK(ObjectClass *, pThat, 0x1C); if(IsDeactivated(pThis)) { R->EAX<eAction>(GetAction(pThis, pThat)); return 0x447273; } return 0; }
DEFINE_HOOK | ( | 5200B3 | , |
InfantryClass_UpdatePanic | , | ||
6 | |||
) |
{ GET(InfantryClass *, pThis, ESI); if(IsDeactivated(pThis)) { if(pThis->PanicDurationLeft > 0) { --pThis->PanicDurationLeft; } return 0x52025A; } return 0; }
DEFINE_HOOK | ( | 4436F7 | , |
BuildingClass_140_Deactivated | , | ||
5 | |||
) |
{ GET(BuildingClass *, pThis, ECX); return (IsDeactivated(pThis)) ? 0x443729 : 0 ; }
DEFINE_HOOK | ( | 4D7D58 | , |
FootClass_140_Deactivated | , | ||
6 | |||
) |
{ GET(FootClass *, pThis, ESI); return (IsDeactivated(pThis)) ? 0x4D7D62 : 0 ; }
DEFINE_HOOK | ( | 51E440 | , |
InfantryClass_GetCursorOverObject_Deactivated | , | ||
8 | |||
) |
{ GET(InfantryClass *, pThis, EDI); GET_STACK(ObjectClass *, pThat, 0x3C); if(IsDeactivated(pThis)) { R->EAX<eAction>(GetAction(pThis, pThat)); return 0x51E458; } return 0; }
DEFINE_HOOK | ( | 4D74EC | , |
FootClass_ClickedAction_Deactivated | , | ||
6 | |||
) |
{ GET(FootClass *, pThis, ESI); return (IsDeactivated(pThis)) ? 0x4D77EC : 0 ; }
DEFINE_HOOK | ( | 417CCB | , |
AircraftClass_GetCursorOverObject_Deactivated | , | ||
5 | |||
) |
{ GET(AircraftClass *, pThis, ECX); GET_STACK(ObjectClass *, pThat, 0x20); if(IsDeactivated(pThis)) { R->EAX<eAction>(GetAction(pThis, pThat)); return 0x417CDF; } return 0; }
DEFINE_HOOK | ( | 51D0DD | , |
InfantryClass_Scatter | , | ||
6 | |||
) |
{ GET(InfantryClass *, pThis, ESI); return (IsDeactivated(pThis)) ? 0x51D6E6 : 0 ; }
DEFINE_HOOK | ( | 417F83 | , |
AircraftClass_GetCursorOverCell_Deactivated | , | ||
6 | |||
) |
{ GET(AircraftClass *, pThis, ESI); if(IsDeactivated(pThis)) { R->EAX<eAction>(GetAction(pThis)); return 0x417F94; } return 0; }
DEFINE_HOOK | ( | 51F808 | , |
InfantryClass_GetCursorOverCell_Deactivated | , | ||
6 | |||
) |
{ GET(InfantryClass *, pThis, EDI); if(IsDeactivated(pThis)) { R->EBX<eAction>(GetAction(pThis)); return 0x51FAE2; } return 0; }
DEFINE_HOOK | ( | 443414 | , |
BuildingClass_ClickedAction_Deactivated | , | ||
6 | |||
) |
{ GET(BuildingClass *, pThis, ECX); return (IsDeactivated(pThis)) ? 0x44344D : 0 ; }
DEFINE_HOOK | ( | 7404B9 | , |
UnitClass_GetCursorOverCell_Deactivated | , | ||
6 | |||
) |
{ GET(UnitClass *, pThis, ESI); if(IsDeactivated(pThis)) { R->EAX<eAction>(GetAction(pThis)); return 0x740805; } return 0; }
DEFINE_HOOK | ( | 73FD5A | , |
UnitClass_GetCursorOverObject_Deactivated | , | ||
5 | |||
) |
{ GET(UnitClass *, pThis, ECX); GET_STACK(ObjectClass *, pThat, 0x20); if(IsDeactivated(pThis)) { R->EAX<eAction>(GetAction(pThis, pThat)); return 0x73FD72; } return 0; }
static eAction GetAction | ( | TechnoClass * | pThis, |
ObjectClass * | pThat = NULL |
||
) | [static] |
{ return TechnoExt::ExtMap.Find(pThis)->GetDeactivatedAction(pThat); };
static bool IsDeactivated | ( | TechnoClass * | pThis | ) | [static] |
{ return TechnoExt::ExtMap.Find(pThis)->IsDeactivated(); };