add collections

This commit is contained in:
2025-03-20 12:31:44 +01:00
parent 4a753b0b8d
commit abb1ea4a38
9 changed files with 383 additions and 4 deletions
+11 -1
View File
@@ -2,15 +2,25 @@
#include "Entity.h"
#include "ICompareable.h"
//enum Monsters
//{
// Ork,
// Troll,
// Elve
//};
class Monster : public Entity, public ICompareable
{
public:
Monster(int strength);
//static Monster Create(Monsters type);
virtual void Move() = 0; // abstract (pure virtual method)
std::string ToString() override;
int Compare(ICompareable* other) override;
protected:
int _strength = 0;
};
float _speed = 0.0f;
};