1
0
cuberite-2a/src/Entities/EnderCrystal.h

56 lines
1.1 KiB
C
Raw Normal View History

2014-03-25 18:59:33 +00:00
#pragma once
#include "Entity.h"
// tolua_begin
class cEnderCrystal :
public cEntity
{
// tolua_end
2020-04-13 16:38:06 +00:00
using Super = cEntity;
2014-03-25 18:59:33 +00:00
public:
CLASS_PROTODEF(cEnderCrystal)
2014-03-25 18:59:33 +00:00
cEnderCrystal(Vector3d a_Pos, bool a_ShowBottom);
cEnderCrystal(Vector3d a_Pos, Vector3i a_BeamTarget, bool a_DisplayBeam, bool a_ShowBottom);
// tolua_begin
Vector3i GetBeamTarget() const { return m_BeamTarget; }
void SetBeamTarget(Vector3i a_BeamTarget);
/** If the EnderCrystal should send it's beam to the client and save it. */
bool DisplaysBeam() const { return m_DisplayBeam; }
void SetDisplayBeam(bool a_DisplayBeam);
2014-03-25 18:59:33 +00:00
bool ShowsBottom() const { return m_ShowBottom; }
void SetShowBottom(bool a_ShowBottom);
2014-03-25 18:59:33 +00:00
// tolua_end
private:
Vector3i m_BeamTarget;
bool m_DisplayBeam;
// If the bedrock base should be displayed.
bool m_ShowBottom;
2014-03-25 18:59:33 +00:00
// cEntity overrides:
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
2014-07-04 09:55:09 +00:00
virtual void KilledBy(TakeDamageInfo & a_TDI) override;
2014-03-25 18:59:33 +00:00
}; // tolua_export