Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
lineOfSight.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <time.h>
4 #include "vec2.h"
5 #include "SDL.h"
6 #include "map.h"
7 
8 namespace LOS
9 {
17  bool lineOfSight(Vec2 a, Vec2 b, Map* map);
18 
28  bool lineLineIntersectionCheck(Vec2 a, Vec2 b, Vec2 c, Vec2 d, char axis);
29 
37  void drawLineOfSight(Vec2 a, Vec2 b, Map* map, SDL_Renderer* renderer);
38 
45  Vec2 getNewTarget(Vec2 a, Map* map);
46 }
Vec2 getNewTarget(Vec2 a, Map *map)
Definition: lineOfSight.cpp:281
Definition: lineOfSight.h:8
bool lineLineIntersectionCheck(Vec2 a, Vec2 b, Vec2 c, Vec2 d, char axis)
Definition: lineOfSight.cpp:104
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition: vec2.h:7
void drawLineOfSight(Vec2 a, Vec2 b, Map *map, SDL_Renderer *renderer)
Definition: lineOfSight.cpp:157
Creates a Map object.
Definition: map.h:13
bool lineOfSight(Vec2 a, Vec2 b, Map *map)
Definition: lineOfSight.cpp:6