add collections
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user