Added more indicators for healing, mana, and interruption.

This commit is contained in:
2023-11-26 18:16:40 -06:00
parent 3605aa818d
commit 3f9543d93b
8 changed files with 64 additions and 16 deletions
+10 -1
View File
@@ -34,13 +34,22 @@ SUCH DAMAGE.
#pragma once
#include "olcPixelGameEngine.h"
enum DamageNumberType{
HEALTH_LOSS,
HEALTH_GAIN,
MANA_GAIN,
INTERRUPT
};
struct DamageNumber{
vf2d pos;
int damage;
float lifeTime=0;
float pauseTime=0;
bool friendly=false;
bool invertedDirection=false;
DamageNumberType type=HEALTH_LOSS;
const static float MOVE_UP_TIME;
DamageNumber();
DamageNumber(vf2d pos,int damage,bool friendly=false);
DamageNumber(vf2d pos,int damage,bool friendly=false,DamageNumberType type=HEALTH_LOSS);
};