22 std::vector<JAM_Particle*>
boids;
76 JAM_Flocking(
int numberOfBoids,
JAM_Texture* texture,
int xBoundary,
int yBoundary,
float maxVel,
int screenHeight);
93 void draw(SDL_Renderer* renderer);
JAM_Flocking(int numberOfBoids, JAM_Texture *texture, int xBoundary, int yBoundary, float maxVel, int screenHeight)
Definition: Flocking.cpp:7
int yBoundary
Definition: Flocking.h:26
int applyRule1
Definition: Flocking.h:24
Creates a Texture for use with a renderer. Creates a Texture from an image file, this can then be use...
Definition: Texture.h:13
void draw(SDL_Renderer *renderer)
Definition: Flocking.cpp:82
int applyRule2
Definition: Flocking.h:24
void setRule2(int applyRule2)
Definition: Flocking.cpp:258
void setRule3(int applyRule3)
Definition: Flocking.cpp:267
JAM_Vec2 roughBoundaries(int index)
Definition: Flocking.cpp:187
JAM_Vec2 rule3(int index)
Definition: Flocking.cpp:158
void limitVelocity(int index)
Definition: Flocking.cpp:225
void update(float dt)
Definition: Flocking.cpp:49
Creates a Flocking object.
Definition: Flocking.h:16
int screenHeight
Definition: Flocking.h:30
void setRule1(int applyRule1)
Definition: Flocking.cpp:249
JAM_Vec2 rule1(int index)
Definition: Flocking.cpp:95
JAM_Vec2 rule2(int index)
Definition: Flocking.cpp:126
std::vector< JAM_Particle * > boids
Definition: Flocking.h:22
int xBoundary
Definition: Flocking.h:26
float maxVel
Definition: Flocking.h:28
~JAM_Flocking()
Definition: Flocking.cpp:37
int applyRule3
Definition: Flocking.h:24
Creates an Vec2 structure with functions. Creates an Vec2 structure with overloaded operators to crea...
Definition: Vec2.h:9
JAM_Texture * whiteSquare
Definition: Flocking.h:20