add forward declaration

add classes
This commit is contained in:
2025-09-15 18:17:50 +02:00
parent 6cc9643a3d
commit 27a9acdee6
17 changed files with 628 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
#pragma once
#include <string>
class Entity
{
public:
Entity(); // declared
Entity(std::string name);
virtual std::string toString() { return "Entity"; } // declared & defined, only use that for one liners
std::string getName() { return _name; }
void setName(std::string name) { _name = name; }
protected:
std::string _name = "";
}; // IMPORTANT: always end with a semicolon