Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
LOS.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <time.h>
5 #include <vector>
6 #include "Vec2.h"
7 #include "Node.h"
8 
14 namespace JAM_LOS
15 {
24  bool lineOfSight(JAM_Vec2 a, JAM_Vec2 b, std::vector<std::vector<JAM_Node*>> map, int nodeSize);
25 
35  bool lineLineIntersectionCheck(JAM_Vec2 a, JAM_Vec2 b, JAM_Vec2 c, JAM_Vec2 d, char axis);
36 
45  void drawLineOfSight(JAM_Vec2 a, JAM_Vec2 b, std::vector<std::vector<JAM_Node*>> map, int nodeSize, SDL_Renderer* renderer);
46 
54  JAM_Vec2 getNewTarget(JAM_Vec2 a, std::vector<std::vector<JAM_Node*>> map, int nodeSize);
55 }
void drawLineOfSight(JAM_Vec2 a, JAM_Vec2 b, std::vector< std::vector< JAM_Node * >> map, int nodeSize, SDL_Renderer *renderer)
Definition: LOS.cpp:157
bool lineLineIntersectionCheck(JAM_Vec2 a, JAM_Vec2 b, JAM_Vec2 c, JAM_Vec2 d, char axis)
Definition: LOS.cpp:104
bool lineOfSight(JAM_Vec2 a, JAM_Vec2 b, std::vector< std::vector< JAM_Node * >> map, int nodeSize)
Definition: LOS.cpp:6
A Namespace that contains functions for the Line Of Sight.
Definition: LOS.h:14
JAM_Vec2 getNewTarget(JAM_Vec2 a, std::vector< std::vector< JAM_Node * >> map, int nodeSize)
Definition: LOS.cpp:281
Creates an Vec2 structure with functions. Creates an Vec2 structure with overloaded operators to crea...
Definition: Vec2.h:9