Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
botB.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include "texture.h"
5 #include "vec2.h"
6 #include "botAI.h"
7 #include "botA.h"
8 
13 class BotB : public BotAI
14 {
15 private:
17  bool following;
20 
27  void updateMoveFollow(Creature*, Map*, float);
28 
29 public:
38  BotB(Texture*, Vec2, int, int, Map*);
39 
43  ~BotB();
44 
51  void playerLineOfSight(Player*, BotA*, Map*);
52 
59  void updateMovement(Player* , Map*, float);
60 
65  bool getFollowing();
66 };
bool getFollowing()
Definition: botB.cpp:157
Creates a BotAI object that inherits Creature. Creates a BotAI object that inherits Creature and cont...
Definition: botAI.h:16
BotA * botA
Definition: botB.h:19
Creates a Creature object that inherits Entity. Creates a Creature object that inherits Entity and co...
Definition: creature.h:13
~BotB()
Definition: botB.cpp:15
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition: vec2.h:7
void updateMovement(Player *, Map *, float)
Definition: botB.cpp:75
void updateMoveFollow(Creature *, Map *, float)
Creates a Map object.
Definition: map.h:13
Creates a BotB object that inherits BotAI. Creates a BotB object that inherits BotAI and contains the...
Definition: botB.h:13
Creates a BotA object that inherits BotAI. Creates a BotA object that inherits BotAI and contains the...
Definition: botA.h:12
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
BotB(Texture *, Vec2, int, int, Map *)
Definition: botB.cpp:6
void playerLineOfSight(Player *, BotA *, Map *)
Definition: botB.cpp:22
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and co...
Definition: player.h:12
bool following
Definition: botB.h:17