1
0
Fork 0
cuberite-2a/src/Mobs/AggressiveMonster.h

42 lines
898 B
C
Raw Permalink Normal View History

#pragma once
#include "Monster.h"
2020-04-13 16:38:06 +00:00
class cAggressiveMonster:
public cMonster
{
2020-04-13 16:38:06 +00:00
using Super = cMonster;
2015-12-22 05:43:50 +00:00
public:
2020-04-13 16:38:06 +00:00
cAggressiveMonster(
const AString & a_ConfigName,
eMonsterType a_MobType,
const AString & a_SoundHurt,
const AString & a_SoundDeath,
const AString & a_SoundAmbient,
2021-04-06 15:09:16 +00:00
float a_Width,
float a_Height
2020-04-13 16:38:06 +00:00
);
virtual void Tick (std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
2015-12-22 05:43:50 +00:00
virtual void InStateChasing(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
2016-10-12 12:38:45 +00:00
virtual void EventSeePlayer(cPlayer * a_Player, cChunk & a_Chunk) override;
2015-12-22 05:43:50 +00:00
2015-11-09 14:51:35 +00:00
/** Try to perform attack
returns true if attack was deemed successful (hit player, fired projectile, creeper exploded, etc.) even if it didn't actually do damage
return false if e.g. the mob is still in cooldown from a previous 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 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 12:44:17 +00:00
virtual bool Attack(std::chrono::milliseconds a_Dt);
} ;