|
Level H Engine
|
A class that handles the cannon controller component. More...
#include <CannonControllerComponent.h>


Public Member Functions | |
| virtual | ~CannonControllerComponent () |
| A virtual destructor. More... | |
| virtual void | onAwake () |
| A virtual function for the componets awake. More... | |
| virtual void | onDestroy () |
| A virtual function for the componets destroy. More... | |
| void | handleInput () |
| void | update () |
| void | setCannonPower (float inPower) |
| float | getCannonPower () |
| void | setCannonAngle (Vec2 inAngle) |
| Vec2 | getCannonAngle () |
| void | setCannonRotation (Vec3 inRot) |
| Vec3 | getCannonRotation () |
| Vec3 | getCannonLaunchVelocities () |
Public Member Functions inherited from Component | |
| virtual | ~Component () |
| A virtual destructor. More... | |
| std::weak_ptr< GameObject > | getGameObject () |
| A function to get the game object linked with the component. More... | |
| virtual void | onUpdate () |
| A virtual function for the componets update. More... | |
| virtual void | onRender () |
| A virtual function for the componets render. More... | |
| void | setDestroyed (bool inDestroyed) |
| A function to set the componets destroyed boolean. More... | |
| bool | getDestroyed () |
| A function to get the componets destroyed boolean. More... | |
| std::string | getID () |
| A function to set the components type ID. More... | |
Private Member Functions | |
| Vec3 | calculateLaunchVeclocites () |
Private Attributes | |
| float | cannonPower |
| The cannon velocity. More... | |
| Vec2 | cannonAngle |
| The cannon angle. More... | |
| Vec3 | cannonRot |
| The cannon rotation. More... | |
| float | rotationSpeed |
| The speed of the rotation. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Component | |
| std::string | id |
| The ID of the component type. More... | |
A class that handles the cannon controller component.
|
virtual |
A virtual destructor.
|
private |


|
inline |
|
inline |


|
inline |
|
inline |
| void CannonControllerComponent::handleInput | ( | ) |


|
virtual |
A virtual function for the componets awake.
Reimplemented from Component.
|
virtual |
A virtual function for the componets destroy.
Reimplemented from Component.
|
inline |
|
inline |
|
inline |
| void CannonControllerComponent::update | ( | ) |


|
private |
The cannon angle.
|
private |
The cannon velocity.
|
private |
The cannon rotation.
|
private |
The speed of the rotation.
1.8.13