add pointer in classes

add interfaces
This commit is contained in:
2025-09-23 12:42:50 +02:00
parent 89459f9cfc
commit 5894f4008e
10 changed files with 167 additions and 5 deletions
+16 -1
View File
@@ -1,10 +1,25 @@
#pragma once
#include "Entity.h"
#include "Vector3.h"
#include "ICompareable.h"
#include "Weapon.h"
class Monster : public MyNamespace::Entity
class Monster : public MyNamespace::Entity, public ICompareable
{
public:
// constructor, copy-constructor & destructor,
// if you need one, you'll need all of them
// internal pointers often requires constrcutor, copy-constructor & destructor
Monster();
//Monster(Weapon* weapon);
Monster(const Monster& other);
virtual ~Monster();
std::string ToString() override { return "Monster"; }
virtual void Move(const Vector3& move) = 0;
bool Compare(const ICompareable* pOther) override;
protected:
Weapon* _pWeapon = nullptr;
};