Creates a Ring object that inherits Entity.
More...
#include <Ring.h>
Creates a Ring object that inherits Entity.
- Author
- Jamie Slowgrove
Ring::Ring |
( |
Model * |
model, |
|
|
float |
scaleValue, |
|
|
int |
AI |
|
) |
| |
Constructs a Ring Object. Creates a Ring Object with a Model using the shader file locations, the obj file location and OpenGL.
- Parameters
-
model | A pointer to the model. |
scaleValue | The scale of the Model. |
AI | The Ring AI type (number between 0 and 6). |
void Ring::typeFourAI |
( |
float |
dt | ) |
|
Apply the action of AI type 4. The ring moves in a circle.
- Parameters
-
void Ring::typeOneAI |
( |
float |
dt | ) |
|
Apply the action of AI type 1. The ring moves right and left.
- Parameters
-
void Ring::typeThreeAI |
( |
float |
dt | ) |
|
Apply the action of AI type 3. The ring moves scales up and down.
- Parameters
-
void Ring::typeTwoAI |
( |
float |
dt | ) |
|
Apply the action of AI type 2. The ring moves forwards and backwards.
- Parameters
-
void Ring::typeZeroAI |
( |
float |
dt | ) |
|
Apply the action of AI type 0. The ring does nothing.
- Parameters
-
void Ring::update |
( |
float |
dt | ) |
|
|
virtual |
A function that updates the Ring
- Parameters
-
Implements Entity.
The type of AI that the Ring will use
Angle for the position of the ring on the circle (use with AI type 4)
Radius for the circle (use with AI type 4)
glm::vec2 Ring::directionXY |
|
private |
The XY move direction for the rings
The move speed for the AI
float Ring::scaleDirection |
|
private |
The scale speed for the AI
The documentation for this class was generated from the following files: