Creates an Boid object Creates an Boid object that is to be used for each Boid.
More...
#include <boid.h>
Creates an Boid object Creates an Boid object that is to be used for each Boid.
Constructs an Boid object
- Parameters
-
void Boid::display |
( |
SDL_Renderer * |
renderer | ) |
|
Displays the Boid
- Parameters
-
SDL_Renderer | * a pointer to the renderer |
Vec2 Boid::getPosition |
( |
| ) |
|
Getter # gets the position
- Returns
- Vec2 the position
Getter # gets the scale
- Returns
- Vec2 the scale
Vec2 Boid::getVelocity |
( |
| ) |
|
Getter # gets the velocity
- Returns
- Vec2 the velocity
void Boid::setPosition |
( |
Vec2 |
inPosition | ) |
|
Setter # sets the position
- Parameters
-
void Boid::setScale |
( |
Vec2 |
inScale | ) |
|
Setter # sets the scale
- Parameters
-
void Boid::setVelocity |
( |
Vec2 |
inVelocity | ) |
|
Setter # sets the velocity
- Parameters
-
The documentation for this class was generated from the following files: