From 775d2edb6b606c3beb5c732bacb7e8a72fdff207 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 2 Sep 2017 20:37:01 +0300 Subject: d --- src/Mobs/Behaviors/BehaviorAttackerRanged.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Mobs/Behaviors/BehaviorAttackerRanged.h') diff --git a/src/Mobs/Behaviors/BehaviorAttackerRanged.h b/src/Mobs/Behaviors/BehaviorAttackerRanged.h index 012590490..1d9e4fcd9 100644 --- a/src/Mobs/Behaviors/BehaviorAttackerRanged.h +++ b/src/Mobs/Behaviors/BehaviorAttackerRanged.h @@ -1,11 +1,23 @@ #pragma once #include "BehaviorAttacker.h" +#include +class cBehaviorAttackerRanged; /** Grants the mob that ability to approach a target and then melee attack it. Use BehaviorAttackerMelee::SetTarget to attack. */ +typedef std::function RangedShootingFunction; + class cBehaviorAttackerRanged : public cBehaviorAttacker { public: + cBehaviorAttackerRanged(RangedShootingFunction a_RangedShootingFUnction, + int a_ProjectileAmount = 1, int a_ShootingIntervals = 1); bool DoStrike(int a_StrikeTickCnt) override; + +private: + RangedShootingFunction m_ShootingFunction; + int m_ProjectileAmount; + int m_ShootingIntervals; }; -- cgit v1.2.3