Added: C++ projects

This commit is contained in:
2026-09-29 22:09:02 +02:00
parent 11929bad68
commit 0af79b3686
32 changed files with 1397 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
//
// Created by David Hackbarth on 21.09.26.
//
#ifndef CLASSES_MONSTER_H
#define CLASSES_MONSTER_H
#include "Entity.h"
#include "IComparable.h"
#include "Weapon.h"
class Monster : public Entity, public IComparable
{
public:
// default constructor, copy constructor & destructor, if you need one you'll need all of them
// internal pointers often requires a deep copy and so a default constructor & a copy constructor & a destructor
Monster();
Monster(string name);
Monster(const Monster& other);
~Monster() override;
string toString() override;
int compareTo(const IComparable& other) const override;
// void assignWeapon(Weapon* weapon);
protected:
Weapon* _pWeapon = nullptr;
};
#endif //CLASSES_MONSTER_H