Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
meteor::MEntity Class Reference

An Entity is the base class for all data and behaviour oriented objects in meteor. This class contains properties and function used by meteor for its operation. More...

#include <entity.h>

Inheritance diagram for meteor::MEntity:

Public Member Functions

virtual bool equals (MEntity *other)
 Checks equality between two entities.
 
std::string getName ()
 
void setName (std::string name)
 Sets name of entity.
 
virtual std::string toString ()
 Get this object as a string.
 

Protected Attributes

std::string name
 

Detailed Description

An Entity is the base class for all data and behaviour oriented objects in meteor. This class contains properties and function used by meteor for its operation.

Member Function Documentation

◆ equals()

virtual bool meteor::MEntity::equals ( MEntity * other)
virtual

Checks equality between two entities.

Parameters
otherentity to check with.

◆ getName()

std::string meteor::MEntity::getName ( )
inline
Returns
Name of entity

◆ toString()

virtual std::string meteor::MEntity::toString ( )
virtual

Get this object as a string.

Returns
A string representing this object

Reimplemented in meteor::MAudioClip.