kima2/src/core/entityint.h

20 lines
313 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
{
2019-10-06 10:47:15 +02:00
public:
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);
2019-10-06 10:47:15 +02:00
int getId() const { return id_; };
protected:
2019-10-04 15:22:15 +02:00
int id_{};
};
#endif // ENTITY_INT_H