1
0
cuberite-2a/source/Entities/ExpOrb.h
STRWarrior 18b5ccbc08 Fixed Details Xoft gave.
Increased the range where orbs (should) track you.
Blazes give 10 xp now.
2013-11-25 21:43:43 +01:00

29 lines
460 B
C++

#pragma once
#include "Entity.h"
class cExpOrb :
public cEntity
{
typedef cExpOrb super;
public:
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; }
protected:
int m_Reward;
} ;