2014-02-18 00:16:03 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-03-13 23:05:06 +00:00
|
|
|
#include "HangingEntity.h"
|
2014-02-18 00:16:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// tolua_begin
|
|
|
|
class cPainting :
|
2015-03-13 23:05:06 +00:00
|
|
|
public cHangingEntity
|
2014-02-18 00:16:03 +00:00
|
|
|
{
|
2019-09-29 12:59:24 +00:00
|
|
|
// tolua_end
|
2014-02-18 00:16:03 +00:00
|
|
|
|
2020-04-13 16:38:06 +00:00
|
|
|
using Super = cHangingEntity;
|
2014-10-21 19:25:52 +00:00
|
|
|
|
2019-09-29 12:59:24 +00:00
|
|
|
public: // tolua_export
|
2014-10-21 19:25:52 +00:00
|
|
|
|
2014-07-22 22:36:13 +00:00
|
|
|
CLASS_PROTODEF(cPainting)
|
2014-02-18 00:16:03 +00:00
|
|
|
|
2019-09-29 12:59:24 +00:00
|
|
|
cPainting(const AString & a_Name, eBlockFace a_Direction, Vector3d a_Pos);
|
2014-10-21 19:25:52 +00:00
|
|
|
|
2015-03-13 23:05:06 +00:00
|
|
|
/** Returns the protocol name of the painting */
|
|
|
|
const AString & GetName(void) const { return m_Name; } // tolua_export
|
2014-02-18 00:16:03 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
virtual void SpawnOn(cClientHandle & a_Client) override;
|
|
|
|
virtual void GetDrops(cItems & a_Items, cEntity * a_Killer) override;
|
2014-07-04 09:55:09 +00:00
|
|
|
virtual void KilledBy(TakeDamageInfo & a_TDI) override
|
2014-02-18 00:16:03 +00:00
|
|
|
{
|
2020-04-13 16:38:06 +00:00
|
|
|
Super::KilledBy(a_TDI);
|
2014-02-18 00:16:03 +00:00
|
|
|
Destroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
AString m_Name;
|
|
|
|
|
|
|
|
}; // tolua_export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|