add casts
add inline add template
This commit is contained in:
@@ -8,8 +8,8 @@ public:
|
||||
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; }
|
||||
const std::string& getName() const { return _name; }
|
||||
void setName(const std::string& name) { _name = name; }
|
||||
|
||||
protected:
|
||||
std::string _name = "";
|
||||
|
||||
Reference in New Issue
Block a user