add smart pointers

add polymorphism
add destructor & copy constructor
add pointer-pointer
This commit is contained in:
2025-09-22 18:22:03 +02:00
parent d8f6014fab
commit 3b35b973c9
13 changed files with 208 additions and 7 deletions
+4 -1
View File
@@ -4,8 +4,11 @@
class Ork : public Monster
{
public:
Ork();
Ork(); // constructor
virtual ~Ork(); // destructor
std::string toString() override { return "Ork"; }
void Move(Vector3 move) override;
};