32 #define C4Fx_Effect_Deny -1
33 #define C4Fx_Effect_Annul -2
34 #define C4Fx_Effect_AnnulCalls -3
36 #define C4Fx_Execute_Kill -1
38 #define C4Fx_Stop_Deny -1
39 #define C4Fx_Start_Deny -1
42 #define C4FxCall_Normal 0
43 #define C4FxCall_Temp 1
44 #define C4FxCall_TempAddForRemoval 2
45 #define C4FxCall_RemoveClear 3
46 #define C4FxCall_RemoveDeath 4
49 #define C4FxCall_DmgScript 0
50 #define C4FxCall_DmgBlast 1
51 #define C4FxCall_DmgFire 2
52 #define C4FxCall_DmgChop 3
55 #define C4FxCall_EngScript 32
56 #define C4FxCall_EngBlast 33
57 #define C4FxCall_EngObjHit 34
58 #define C4FxCall_EngFire 35
59 #define C4FxCall_EngBaseRefresh 36
60 #define C4FxCall_EngAsphyxiation 37
61 #define C4FxCall_EngCorrosion 38
62 #define C4FxCall_EngStruct 39
63 #define C4FxCall_EngGetPunched 40
65 #define C4Fx_FireParticle1 "Fire"
66 #define C4Fx_FireParticle2 "Fire2"
89 int CallStop(
int reason,
bool temporary);
91 void CallDamage(int32_t & damage,
int damagetype,
int plr);
115 C4Effect *
Get(
const char *szName, int32_t iIndex=0, int32_t iMaxPriority=0);
116 int32_t
GetCount(
const char *szMask, int32_t iMaxPriority=0);
123 void DoDamage(int32_t &riDamage, int32_t iDamageType, int32_t iCausePlr);
149 #define C4Fx_AnyFire "*Fire*"
void AssignCallbackFunctions()
int CallStop(int reason, bool temporary)
C4Value DoCall(C4PropList *pObj, const char *szFn, const C4Value &rVal1, const C4Value &rVal2, const C4Value &rVal3, const C4Value &rVal4, const C4Value &rVal5, const C4Value &rVal6, const C4Value &rVal7)
static C4Effect * New(C4PropList *pForObj, C4Effect **ppEffectList, C4String *szName, int32_t iPrio, int32_t iTimerInterval, C4PropList *pCmdTarget, const C4Value &rVal1, const C4Value &rVal2, const C4Value &rVal3, const C4Value &rVal4)
C4Effect * GetEffect() override
void DoDamage(int32_t &riDamage, int32_t iDamageType, int32_t iCausePlr)
void ReAssignAllCallbackFunctions()
C4Effect(const C4Effect &)=delete
C4PropList * GetCallbackScript()
C4ValueArray * GetProperties() const override
C4Effect * Check(const char *szCheckEffect, int32_t iPrio, int32_t iTimer, const C4Value &rVal1, const C4Value &rVal2, const C4Value &rVal3, const C4Value &rVal4)
void TempRemoveUpperEffects(bool fTempRemoveThis, C4Effect **ppLastRemovedEffect)
bool IsInactiveAndNotDead()
void Denumerate(C4ValueNumbers *) override
void Register(C4Effect **ppEffectList, int32_t iPrio)
void CallDamage(int32_t &damage, int damagetype, int plr)
void ResetProperty(C4String *k) override
bool GetPropertyByS(const C4String *k, C4Value *pResult) const override
void SetPropertyByS(C4String *k, const C4Value &to) override
friend void CompileNewFunc(T *&, StdCompiler *, P &&...)
void ClearPointers(C4PropList *pObj)
void ReAssignCallbackFunctions()
void OnObjectChangedDef(C4PropList *pObj)
C4Effect * Get(const char *szName, int32_t iIndex=0, int32_t iMaxPriority=0)
int CallEffect(const char *effect, const C4Value &var1, const C4Value &var2, const C4Value &var3, const C4Value &var4)
int CallStart(int temporary, const C4Value &var1, const C4Value &var2, const C4Value &var3, const C4Value &var4)
int32_t GetCount(const char *szMask, int32_t iMaxPriority=0)
C4Effect * Init(C4PropList *pForObj, int32_t iPrio, const C4Value &rVal1, const C4Value &rVal2, const C4Value &rVal3, const C4Value &rVal4)
static void Execute(C4Effect **ppEffectList)
void ClearAll(int32_t iClearFlag)
void TempReaddUpperEffects(C4Effect *pLastReaddEffect)
void CompileFunc(StdCompiler *pComp, C4PropList *Owner, C4ValueNumbers *)