Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
entity.h
1#pragma once
2#include <string>
3
4namespace meteor {
9 class MEntity {
10 public:
15 virtual bool equals(MEntity* other);
19 inline std::string getName() { return name; }
23 inline void setName(std::string name) { this->name = name; }
24
29 virtual std::string toString();
30 protected:
31 std::string name;
32 };
33}
An Entity is the base class for all data and behaviour oriented objects in meteor....
Definition entity.h:9
void setName(std::string name)
Sets name of entity.
Definition entity.h:23
virtual bool equals(MEntity *other)
Checks equality between two entities.
virtual std::string toString()
Get this object as a string.
std::string getName()
Definition entity.h:19