Added advanced effects

This commit is contained in:
Pax1601
2023-11-06 19:26:15 +01:00
parent 5273291e9a
commit 1e461250d5
8 changed files with 105 additions and 16 deletions

View File

@@ -410,10 +410,11 @@ private:
class Explosion : public Command
{
public:
Explosion(unsigned int intensity, Coords location, function<void(void)> callback = [](){}) :
Explosion(unsigned int intensity, string explosionType, Coords location, function<void(void)> callback = [](){}) :
Command(callback),
location(location),
intensity(intensity)
intensity(intensity),
explosionType(explosionType)
{
priority = CommandPriority::MEDIUM;
};
@@ -423,4 +424,5 @@ public:
private:
const Coords location;
const unsigned int intensity;
const string explosionType;
};