(WIP) Add src param to transition + certain hooks

Should all hooks have src? I think not
This commit is contained in:
gsemaj
2022-04-12 23:44:12 -04:00
parent 69a478b777
commit 45742e90a2
5 changed files with 18 additions and 18 deletions

View File

@@ -157,12 +157,12 @@ struct CombatNPC : public BaseNPC, public ICombatant {
virtual void retreatStep(time_t currTime) {}
virtual void deadStep(time_t currTime) {}
virtual void transition(AIState newState);
virtual void transition(AIState newState, EntityRef src);
virtual void onInactive() {} // no-ops by default
virtual void onRoamStart() {}
virtual void onCombatStart() {}
virtual void onCombatStart(EntityRef src) {}
virtual void onRetreat() {}
virtual void onDeath() {}
virtual void onDeath(EntityRef src) {}
};
// Mob is in MobAI.hpp, Player is in Player.hpp