#include <ControllerComponent.hpp>
|
|
std::vector< ComponentTag > | tags |
| |
|
std::vector< std::string > | previousBroadcasts |
| |
|
std::vector< std::string > | pendingBroadcasts |
| |
Allows a GameObject to be controlled via player input.
◆ ControllerComponent()
Construct a new Controller Component object,
- Parameters
-
| _transform | the position of the containing GameObject |
- See also
- TransformComponent
- Parameters
-
| deltaPos | how much the position changes given input |
◆ ~ControllerComponent()
| ControllerComponent::~ControllerComponent |
( |
| ) |
|
◆ ComponentTypeName()
| const char * ControllerComponent::ComponentTypeName |
( |
| ) |
|
|
inlineoverridevirtual |
◆ ShowComponentEditor()
| void ControllerComponent::ShowComponentEditor |
( |
bool * |
showEditor | ) |
|
|
overridevirtual |
◆ Update()
| void ControllerComponent::Update |
( |
SDL_Event |
e, |
|
|
int |
frame, |
|
|
std::vector< std::string > |
broadcastList |
|
) |
| |
|
overridevirtual |
Uses any input in the SDL_Event to move the GameObject.
- Parameters
-
| e | checked for any controller input |
| frame | irrelevant for this implementation |
| broadcastList | irrelevant for this implementation |
Reimplemented from Component.
The documentation for this class was generated from the following files: