2012-12-21 06:04:08 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 16:53:08 -04:00
|
|
|
#include "AggressiveMonster.h"
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-13 12:38:06 -04:00
|
|
|
class cGhast:
|
2012-12-21 06:04:08 -05:00
|
|
|
public cAggressiveMonster
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
2020-04-13 12:38:06 -04:00
|
|
|
using Super = cAggressiveMonster;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
public:
|
2020-04-13 12:38:06 -04:00
|
|
|
|
|
|
|
cGhast();
|
2012-12-21 06:04:08 -05:00
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cGhast)
|
2012-12-21 06:04:08 -05:00
|
|
|
|
2020-03-26 13:54:40 -04:00
|
|
|
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2014-10-20 16:55:07 -04:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
2015-11-08 07:44:17 -05:00
|
|
|
virtual bool Attack(std::chrono::milliseconds a_Dt) override;
|
2020-03-26 13:54:40 -04:00
|
|
|
virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
2013-10-09 16:02:59 -04:00
|
|
|
|
2020-03-26 13:54:40 -04:00
|
|
|
bool IsCharging(void) const { return m_IsCharging; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
/** Specifies whether or not the ghast has started shooting a fireball. */
|
|
|
|
bool m_IsCharging;
|
|
|
|
|
|
|
|
/** Number of ticks until the ghast tries to fly to another position. */
|
|
|
|
int m_FlightCooldown;
|
|
|
|
|
|
|
|
/** Number of ticks until a projectile is created.
|
|
|
|
Only used while m_IsCharging is true. */
|
|
|
|
int m_TicksUntilShot;
|
2012-12-21 06:04:08 -05:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|