-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfishHandler.h
More file actions
54 lines (38 loc) · 1014 Bytes
/
fishHandler.h
File metadata and controls
54 lines (38 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef FISH_HANDLER_H
#define FISH_HANDLER_H
#include <iostream>
#include <vector>
// #include <glm/func_geometric.hpp>
#include <iostream>
#include "global.h"
#include "fish.h"
#include "shader.h"
#include "fishRenderer.h"
typedef struct {
int* fish_indexes;
int num_of_boxed_fish;
} box_struct;
class FishHandler{
public:
Fish* allFish;
unsigned int number_of_fish;
float cohesionIntensity;
float alignmentIntensity;
float separationIntensity;
float edgeEvasionIntensity;
FishHandler();
~FishHandler();
void createFish();
void boxTheFish();
void resetBoxSizes();
void calcFishHitChecks();
void handleFishMovement(float delta_time); // responsible for boid-like behaviour of fish
void update_num_of_fish();
void update_cohesion_intensity();
void update_separation_intensity();
void update_alignment_intensity();
void update_edge_evasion_intensity();
private:
box_struct** boxes;
};
#endif // !FISH_HANDLER_H