J :
* Add missing files.
This commit is contained in:
44
projects/mtg/include/GuiMana.h
Normal file
44
projects/mtg/include/GuiMana.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#include "string.h"
|
||||
#include <vector>
|
||||
#include <hge/hgeparticle.h>
|
||||
#include "config.h"
|
||||
#include "JGE.h"
|
||||
#include "MTGDefinitions.h"
|
||||
#include "GameApp.h"
|
||||
#include "GuiLayers.h"
|
||||
|
||||
class ManaIcon : public Pos
|
||||
{
|
||||
static const float DESTX;
|
||||
static const float DESTY;
|
||||
|
||||
hgeParticleSystem* particleSys;
|
||||
JQuad* icon;
|
||||
|
||||
float zoomP1, zoomP2, zoomP3, zoomP4, zoomP5, zoomP6;
|
||||
float xP1, xP2, xP3;
|
||||
float yP1, yP2, yP3;
|
||||
float tP1;
|
||||
float f;
|
||||
public:
|
||||
enum { ALIVE, WITHERING, DROPPING, DEAD } mode;
|
||||
int color;
|
||||
void Render();
|
||||
void Update(float dt);
|
||||
void Wither();
|
||||
void Drop();
|
||||
ManaIcon(int color, float x, float y);
|
||||
~ManaIcon();
|
||||
};
|
||||
|
||||
class GuiMana : public GuiLayer
|
||||
{
|
||||
protected:
|
||||
vector<ManaIcon*> manas;
|
||||
public:
|
||||
GuiMana();
|
||||
virtual void Render();
|
||||
virtual void Update(float dt);
|
||||
virtual int receiveEventPlus(WEvent * e);
|
||||
virtual int receiveEventMinus(WEvent * e);
|
||||
};
|
||||
Reference in New Issue
Block a user