2012-12-19 16:19:36 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2013-05-26 10:39:04 -04:00
|
|
|
#include "DropSpenserEntity.h"
|
2012-12-19 16:19:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-25 07:59:13 -04:00
|
|
|
// tolua_begin
|
2012-12-19 16:19:36 -05:00
|
|
|
class cDispenserEntity :
|
2013-05-26 10:39:04 -04:00
|
|
|
public cDropSpenserEntity
|
2012-12-19 16:19:36 -05:00
|
|
|
{
|
2013-05-26 10:39:04 -04:00
|
|
|
typedef cDropSpenserEntity super;
|
2013-05-25 07:59:13 -04:00
|
|
|
|
2012-12-19 16:19:36 -05:00
|
|
|
public:
|
2013-05-25 07:59:13 -04:00
|
|
|
|
|
|
|
/// Constructor used while generating a chunk; sets m_World to NULL
|
|
|
|
cDispenserEntity(int a_BlockX, int a_BlockY, int a_BlockZ);
|
|
|
|
|
|
|
|
// tolua_end
|
|
|
|
|
|
|
|
/// Constructor used for normal operation
|
|
|
|
cDispenserEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
|
|
|
|
|
|
|
|
static const char * GetClassStatic(void) { return "cDispenserEntity"; }
|
2012-12-19 16:19:36 -05:00
|
|
|
|
|
|
|
private:
|
2013-05-26 10:39:04 -04:00
|
|
|
// cDropSpenser overrides:
|
2013-05-28 14:50:44 -04:00
|
|
|
virtual void DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum) override;
|
2013-05-26 16:52:39 -04:00
|
|
|
|
|
|
|
/// If such a bucket can fit, adds it to m_Contents and returns true
|
|
|
|
bool ScoopUpLiquid(int a_SlotNum, short a_BucketItemType);
|
|
|
|
|
|
|
|
/// If the a_BlockInFront is liquidable and the empty bucket can fit, does the m_Contents processing and returns true
|
2013-05-28 14:50:44 -04:00
|
|
|
bool EmptyLiquidBucket(BLOCKTYPE a_BlockInFront, int a_SlotNum);
|
2013-05-25 07:59:13 -04:00
|
|
|
} ; // tolua_export
|
2012-12-19 16:19:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|