Porting in old gamejam code. Removed SOME cruft, more likely remains. Sound + sprite test.
This commit is contained in:
parent
1784489dfb
commit
d2499a67f8
27 changed files with 1090 additions and 4 deletions
25
src/Entity.cpp
Normal file
25
src/Entity.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#include "Entity.h"
|
||||
|
||||
Entity::Entity(const size_t i, const std::string & t)
|
||||
: m_id(i), m_tag(t) {}
|
||||
|
||||
bool Entity::isActive() const
|
||||
{
|
||||
return m_active;
|
||||
}
|
||||
|
||||
const std::string & Entity::tag() const
|
||||
{
|
||||
return m_tag;
|
||||
}
|
||||
|
||||
const size_t Entity::id() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void Entity::destroy()
|
||||
{
|
||||
m_active = false;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue