forked from Lupus590AtUni/Uni_NetworksAssignment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
35 lines (27 loc) · 1.34 KB
/
globals.h
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
#pragma once
#include "NA_CriticalSection.h"
#include "NA_NetworkManager.h"
//////////////////////////////////////////////////////////////////////////////////////////
// constants
//////////////////////////////////////////////////////////////////////////////////////////
const int SCREEN_WIDTH = 500;
const int SCREEN_HEIGHT = 500;
const int FPS_MAX = 60;//anything bigger than 60 fps is pointless on most machines as the monitor won't take more
const int BOID_MAX = 50;
const float BOID_SPEED_MAX = 2.0f;
const float BOID_RESPECT_DIST = 15.0f; //boid to boid spacing
const float BOID_ROTATE_MAX = 0.00000000001f;
const float BOID_MOUSE_FEAR = 25.0f; //boid distance from mouse
const float BOID_COHESION_WEIGHTING = 0.0025f;
const float BIOD_SIGHT_RANGE = 25.0f; //max distance to consider boids as nearby
const bool DEBUG_RUN_TOP_SPEED = true; //override FPS cap
const bool DEBUG_AVERAGE_POS = false;
const bool DEBUG_HIGHLIGHT_FIRST_BOID = false;
const bool DEBUG_PRINT_POS_OF_FIRST_BOID = false;
const bool DEBUG_PRINT_POS_OF_ALL_BOIDS = false;
const float DEBUG_UPDATE_FREQUENCY = 1.0f/FPS_MAX; //override FPS
const PCSTR DEFAULT_PORT = "50000";
///////////////////////////////////////////////////
///Multithreading stuff
//////////////////////////////////////////////////
static NA_CriticalSection NA_consoleOutputCritSect;