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
|
|
|
{
|
2015-03-13 23:05:06 +00:00
|
|
|
typedef cHangingEntity super;
|
2014-02-18 00:16:03 +00:00
|
|
|
|
|
|
|
public:
|
2014-10-21 19:25:52 +00:00
|
|
|
|
|
|
|
// tolua_end
|
|
|
|
|
2014-07-22 22:36:13 +00:00
|
|
|
CLASS_PROTODEF(cPainting)
|
2014-02-18 00:16:03 +00:00
|
|
|
|
2015-03-13 23:05:06 +00:00
|
|
|
cPainting(const AString & a_Name, eBlockFace a_Direction, double a_X, double a_Y, double a_Z);
|
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
|
|
|
{
|
2014-07-04 09:55:09 +00:00
|
|
|
super::KilledBy(a_TDI);
|
2014-02-18 00:16:03 +00:00
|
|
|
Destroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
AString m_Name;
|
|
|
|
|
|
|
|
}; // tolua_export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|