2021-03-14 22:47:55 -04:00
|
|
|
|
|
|
|
// BannerEntity.h
|
|
|
|
|
|
|
|
// Declares the cBannerEntity class representing a single banner in the world
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BlockEntity.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// tolua_begin
|
|
|
|
class cBannerEntity :
|
|
|
|
public cBlockEntity
|
|
|
|
{
|
|
|
|
// tolua_end
|
|
|
|
|
|
|
|
using Super = cBlockEntity;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
cBannerEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World);
|
|
|
|
cBannerEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World, unsigned char a_BaseColor);
|
|
|
|
|
|
|
|
unsigned char GetBaseColor() const;
|
|
|
|
void SetBaseColor(unsigned char a_Color);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
unsigned char m_BaseColor;
|
|
|
|
|
|
|
|
// cBlockEntity overrides:
|
|
|
|
virtual cItems ConvertToPickups() const override;
|
|
|
|
virtual void CopyFrom(const cBlockEntity & a_Src) override;
|
|
|
|
virtual void SendTo(cClientHandle & a_Client) override;
|
2021-03-15 13:06:40 -04:00
|
|
|
virtual bool UsedBy(cPlayer * a_Player) override;
|
2021-03-14 22:47:55 -04:00
|
|
|
} ; // tolua_export
|