1
0
cuberite-2a/src/Mobs/Ghast.h

43 lines
845 B
C
Raw Normal View History

#pragma once
#include "AggressiveMonster.h"
2020-04-13 12:38:06 -04:00
class cGhast:
public cAggressiveMonster
{
2020-04-13 12:38:06 -04:00
using Super = cAggressiveMonster;
2016-02-05 16:45:45 -05:00
public:
2020-04-13 12:38:06 -04:00
cGhast();
CLASS_PROTODEF(cGhast)
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;
fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack
2015-11-08 07:44:17 -05:00
virtual bool Attack(std::chrono::milliseconds a_Dt) override;
virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
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;
} ;