Skip to content

Commit

Permalink
- converted FuncScorp to a class.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 16, 2021
1 parent 5418c43 commit d77a520
Show file tree
Hide file tree
Showing 2 changed files with 307 additions and 277 deletions.
9 changes: 9 additions & 0 deletions source/games/exhumed/src/aistuff.h
Expand Up @@ -617,6 +617,15 @@ struct AIRoach : public ExhumedAI
void RadialDamage(RunListEvent* ev) override;
};

struct AIScorp : public ExhumedAI
{
void Effect(RunListEvent* ev, int nTarget, int mode);
void Tick(RunListEvent* ev) override;
void Damage(RunListEvent* ev) override;
void Draw(RunListEvent* ev) override;
void RadialDamage(RunListEvent* ev) override;
};

void runlist_DispatchEvent(ExhumedAI* ai, int nObject, int nMessage, int nDamage, int nRun);

typedef void(*AiFunc)(int, int, int, int nRun);
Expand Down

0 comments on commit d77a520

Please sign in to comment.