Botcraft
1.21.5
Loading...
Searching...
No Matches
AbstractCowEntity.cpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 769
/* > 1.21.4 */
2
#include "
botcraft/Game/Entities/entities/animal/AbstractCowEntity.hpp
"
3
4
namespace
Botcraft
5
{
6
AbstractCowEntity::AbstractCowEntity
()
7
{
8
// Initialize all attributes with default values
9
attributes
.insert({
EntityAttribute::Type::MaxHealth
,
EntityAttribute
(
EntityAttribute::Type::MaxHealth
, 10.0) });
10
attributes
.insert({
EntityAttribute::Type::MovementSpeed
,
EntityAttribute
(
EntityAttribute::Type::MovementSpeed
, 0.2) });
11
}
12
13
AbstractCowEntity::~AbstractCowEntity
()
14
{
15
16
}
17
18
bool
AbstractCowEntity::IsAbstractCow
()
const
19
{
20
return
true
;
21
}
22
23
}
24
#endif
AbstractCowEntity.hpp
Botcraft::AbstractCowEntity::~AbstractCowEntity
virtual ~AbstractCowEntity()
Definition
AbstractCowEntity.cpp:13
Botcraft::AbstractCowEntity::IsAbstractCow
virtual bool IsAbstractCow() const override
Definition
AbstractCowEntity.cpp:18
Botcraft::AbstractCowEntity::AbstractCowEntity
AbstractCowEntity()
Definition
AbstractCowEntity.cpp:6
Botcraft::EntityAttribute
Definition
EntityAttribute.hpp:13
Botcraft::EntityAttribute::Type::MaxHealth
@ MaxHealth
Botcraft::EntityAttribute::Type::MovementSpeed
@ MovementSpeed
Botcraft::LivingEntity::attributes
std::map< EntityAttribute::Type, EntityAttribute > attributes
Definition
LivingEntity.hpp:137
Botcraft
Definition
BaseNode.hpp:6
botcraft
src
Game
Entities
entities
animal
AbstractCowEntity.cpp
Generated by
1.9.8