Make the component bounce.
More...
|
| | this (size_t ownerID, float bounceHeight) |
| | Set up the script.
|
| |
| void | SetBounceHeight (float height) |
| | Set the new bounce height.
|
| |
| float | GetBounceHeight () |
| | Get the current bounce height.
|
| |
| override void | Update () |
| | Update internal state of the script.
|
| |
|
| this (size_t id) |
| | Store the owner id.
|
| |
| override void | Render (SDL_Renderer *renderer, SDL_Rect *camera) |
| | Render the given script.
|
| |
|
|
float | bounceHeight |
| | The bounce height in pixels.
|
| |
Make the component bounce.
◆ this()
| ComponentBounce::this |
( |
size_t | ownerID, |
|
|
float | bounceHeight ) |
|
inline |
Set up the script.
- Parameters
-
| owner | the id of the linked GameObject. |
| bounceHeight | the bounce height in pixels. |
◆ GetBounceHeight()
| float ComponentBounce::GetBounceHeight |
( |
| ) |
|
|
inline |
Get the current bounce height.
- Returns
- the height in pixels.
◆ SetBounceHeight()
| void ComponentBounce::SetBounceHeight |
( |
float | height | ) |
|
|
inline |
Set the new bounce height.
- Parameters
-
| height | the new height in pixels. |
◆ Update()
| override void ComponentBounce::Update |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: