Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
yage
entity
system.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
entity.h
"
4
5
namespace
yage
6
{
7
8
class
BaseSystem
9
{
10
public
:
11
virtual
void
update
(
double
dt,
EntityManager
&em) = 0;
12
};
13
14
template
<
typename
T>
15
class
System
:
public
BaseSystem
16
{
17
protected
:
18
ComponentMask
active_mask_
;
19
};
20
21
}
// namespace yage
entity.h
yage::System
Definition:
system.h:15
yage::EntityManager
Has to keep track of all the different entities and their current state.
Definition:
entity.h:24
yage::BaseSystem::update
virtual void update(double dt, EntityManager &em)=0
yage::BaseSystem
Definition:
system.h:8
yage::System::active_mask_
ComponentMask active_mask_
Definition:
system.h:18
yage::ComponentMask
std::bitset< 64 > ComponentMask
The component mask represents all the components that the entity is currently attached to...
Definition:
component.h:14
Generated on Sat Jun 23 2018 15:09:53 by
1.8.6