kima2/src/core/entityint.h

20 lines
311 B
C
Raw Normal View History

2019-10-04 15:22:15 +02:00
#ifndef ENTITY_INT_H
#define ENTITY_INT_H
#include "entity.h"
class EntityInt : public Entity
{
2022-07-07 15:21:46 +02:00
public:
2019-10-06 10:47:15 +02:00
EntityInt() = default;
2019-10-07 10:51:13 +02:00
virtual ~EntityInt() = default;
2019-10-06 10:47:15 +02:00
EntityInt(int id);
2019-10-04 15:22:15 +02:00
void setId(int id);
2022-07-07 15:03:39 +02:00
int getId() const { return m_id; };
2019-10-06 10:47:15 +02:00
2022-07-07 15:21:46 +02:00
protected:
2022-07-07 15:03:39 +02:00
int m_id{};
2019-10-04 15:22:15 +02:00
};
#endif // ENTITY_INT_H