Botcraft
1.21.4
Loading...
Searching...
No Matches
MagmaCubeEntity.cpp
Go to the documentation of this file.
1
#include "
botcraft/Game/Entities/entities/monster/MagmaCubeEntity.hpp
"
2
3
namespace
Botcraft
4
{
5
MagmaCubeEntity::MagmaCubeEntity
()
6
{
7
// Initialize all attributes with default values
8
attributes
.insert({
EntityAttribute::Type::MovementSpeed
,
EntityAttribute
(
EntityAttribute::Type::MovementSpeed
, 0.2) });
9
}
10
11
MagmaCubeEntity::~MagmaCubeEntity
()
12
{
13
14
}
15
16
17
std::string
MagmaCubeEntity::GetName
()
const
18
{
19
return
"magma_cube"
;
20
}
21
22
EntityType
MagmaCubeEntity::GetType
()
const
23
{
24
return
EntityType::MagmaCube
;
25
}
26
27
28
std::string
MagmaCubeEntity::GetClassName
()
29
{
30
return
"magma_cube"
;
31
}
32
33
EntityType
MagmaCubeEntity::GetClassType
()
34
{
35
return
EntityType::MagmaCube
;
36
}
37
38
}
MagmaCubeEntity.hpp
Botcraft::EntityAttribute
Definition
EntityAttribute.hpp:13
Botcraft::EntityAttribute::Type::MovementSpeed
@ MovementSpeed
Botcraft::LivingEntity::attributes
std::map< EntityAttribute::Type, EntityAttribute > attributes
Definition
LivingEntity.hpp:137
Botcraft::MagmaCubeEntity::GetClassType
static EntityType GetClassType()
Definition
MagmaCubeEntity.cpp:33
Botcraft::MagmaCubeEntity::~MagmaCubeEntity
virtual ~MagmaCubeEntity()
Definition
MagmaCubeEntity.cpp:11
Botcraft::MagmaCubeEntity::MagmaCubeEntity
MagmaCubeEntity()
Definition
MagmaCubeEntity.cpp:5
Botcraft::MagmaCubeEntity::GetType
virtual EntityType GetType() const override
Definition
MagmaCubeEntity.cpp:22
Botcraft::MagmaCubeEntity::GetName
virtual std::string GetName() const override
Definition
MagmaCubeEntity.cpp:17
Botcraft::MagmaCubeEntity::GetClassName
static std::string GetClassName()
Definition
MagmaCubeEntity.cpp:28
Botcraft
Definition
BaseNode.hpp:6
Botcraft::EntityType
EntityType
Definition
Entity.hpp:280
Botcraft::EntityType::MagmaCube
@ MagmaCube
botcraft
src
Game
Entities
entities
monster
MagmaCubeEntity.cpp
Generated by
1.9.8