Botcraft
1.21.4
Loading...
Searching...
No Matches
Entity.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
botcraft/Renderer/BlockRenderable.hpp
"
4
5
#include "
botcraft/Game/Vector3.hpp
"
6
7
namespace
Botcraft
8
{
9
namespace
Renderer
10
{
11
class
Entity
:
public
BlockRenderable
12
{
13
public
:
14
Entity
(
const
std::vector<Face>& faces_);
15
~Entity
();
16
17
void
Update
();
18
void
UpdateFaces
(
const
std::vector<Face>& faces_);
19
20
/// @brief Get an approximate position for this model
21
/// @return The center of the first face of this entity
22
Vector3<float>
GetApproxPos
();
23
};
24
}
// Renderer
25
}
// Botcraft
BlockRenderable.hpp
Vector3.hpp
Botcraft::Renderer::BlockRenderable
Definition
BlockRenderable.hpp:21
Botcraft::Renderer::Entity
Definition
Entity.hpp:12
Botcraft::Renderer::Entity::GetApproxPos
Vector3< float > GetApproxPos()
Get an approximate position for this model.
Definition
Entity.cpp:72
Botcraft::Renderer::Entity::UpdateFaces
void UpdateFaces(const std::vector< Face > &faces_)
Definition
Entity.cpp:61
Botcraft::Renderer::Entity::~Entity
~Entity()
Definition
Entity.cpp:15
Botcraft::Renderer::Entity::Update
void Update()
Definition
Entity.cpp:20
Botcraft
Definition
BaseNode.hpp:6
Botcraft::Vector3
Definition
Vector3.hpp:13
botcraft
private_include
botcraft
Renderer
Entity.hpp
Generated by
1.9.8