Example #1
0
EffectSystem::EffectSystem(World* _world)
: Base(ComponentFilter().Requires<EffectComponent>(), _world)
{
	m_currentTime = 0.f;
	m_maxTime = 1.f;
	m_flags.OnAdded = NO_EFFECT;
	m_flags.OnCollide = NO_EFFECT;
	m_flags.OnEveryFrame = NO_EFFECT;
	m_flags.OnRemoved = NO_EFFECT;
}
Example #2
0
PhysicsSystem::PhysicsSystem(World* _world) 
: Base(ComponentFilter().Requires<CollisionComponent>(), _world)
{
	m_b2World = new b2World(DEFAULTGRAVITY);
}
Example #3
0
MovementSystem::MovementSystem()
: Base(ComponentFilter().Requires<VelocityComponent, PositionComponent>())
{
}
Example #4
0
ProjectileSystem::ProjectileSystem(World* _world)
: Base(ComponentFilter().Requires<PositionComponent, MouseInputComponent>(), _world)
{
}
Example #5
0
AudioSystem::AudioSystem(World* _world)
: Base(ComponentFilter().Requires<AudioComponent, CollisionComponent>(), _world)
{
	m_audioManager = AudioManager::GetInstance();
}