Simple C++ Game
include
entity
PlayerInputSystem.hpp
1
#pragma once
2
3
#include <IteratingSystem.hpp>
4
10
class
PlayerInputSystem
:
public
IteratingSystem
11
{
12
public
:
16
PlayerInputSystem
();
17
18
protected
:
27
void
process
(std::shared_ptr<Entity> &entity, sf::Time deltaTime);
28
};
IteratingSystem
An implementation of EntitySystem that iterates through all Entity objects in EntitySystem::getEntiti...
Definition:
IteratingSystem.hpp:10
PlayerInputSystem
A system that uses player input to drive a paddle.
Definition:
PlayerInputSystem.hpp:11
PlayerInputSystem::process
void process(std::shared_ptr< Entity > &entity, sf::Time deltaTime)
Updates the behavior of a player paddle based on the current keyboard inputs.
PlayerInputSystem::PlayerInputSystem
PlayerInputSystem()
Construct a new PlayerInputSystem.
Generated by
1.9.1