Switch to smart pointer implementation for damage numbers to handle damage combo'ing quick attack displays.

This commit is contained in:
2023-07-25 19:48:24 -05:00
parent 9585baf5c6
commit a0916cfe9b
9 changed files with 49 additions and 19 deletions
+3
View File
@@ -4,6 +4,7 @@
#include "State.h"
#include "Buff.h"
#include "olcUTIL_Animate2D.h"
#include "DamageNumber.h"
struct Player;
@@ -85,6 +86,8 @@ struct Monster{
vf2d pathTarget={};
std::vector<vf2d>path;
int pathIndex=0;
float lastHitTimer=0;
std::shared_ptr<DamageNumber>damageNumberPtr;
protected:
public:
Monster()=delete;