1
0
cuberite-2a/src/Entities/ExpOrb.h

30 lines
486 B
C
Raw Normal View History

2013-11-25 19:05:52 +00:00
#pragma once
#include "Entity.h"
class cExpOrb :
public cEntity
{
typedef cExpOrb super;
public:
CLASS_PROTODEF(cExpOrb);
2013-11-25 19:05:52 +00:00
cExpOrb(double a_X, double a_Y, double a_Z, int a_Reward);
cExpOrb(const Vector3d & a_Pos, int a_Reward);
// Override functions
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
virtual void SpawnOn(cClientHandle & a_Client) override;
// cExpOrb functions
int GetReward(void) const { return m_Reward; }
2013-11-25 19:05:52 +00:00
protected:
int m_Reward;
} ;