blob: 91ef87e8ca327c9f8717ea03e117b66c86537391 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// 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, unsigned char a_BaseColor = 1, AString a_CustomName = "");
unsigned char GetBaseColor() const { return m_BaseColor; }
void SetBaseColor(unsigned char a_Color) { m_BaseColor = a_Color; }
const AString & GetCustomName() const { return m_CustomName; }
void SetCustomName(const AString & a_CustomName) { m_CustomName = a_CustomName; }
private:
unsigned char m_BaseColor;
AString m_CustomName;
// cBlockEntity overrides:
virtual cItems ConvertToPickups() const override;
virtual void CopyFrom(const cBlockEntity & a_Src) override;
virtual void SendTo(cClientHandle & a_Client) override;
virtual bool UsedBy(cPlayer * a_Player) override;
} ; // tolua_export
|