17 lines
404 B
C++
17 lines
404 B
C++
#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
|
|
const std::string& getName() const { return _name; }
|
|
void setName(const std::string& name) { _name = name; }
|
|
|
|
protected:
|
|
std::string _name = "";
|
|
|
|
}; // IMPORTANT: always end with a semicolon
|