Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
BotA Class Reference

Creates a BotA object that inherits BotAI. Creates a BotA object that inherits BotAI and contains the details for the BotA. More...

#include <botA.h>

Inheritance diagram for BotA:
Inheritance graph
Collaboration diagram for BotA:
Collaboration graph

Public Member Functions

 BotA (Texture *, Vec2, int, int, Map *)
 
 ~BotA ()
 
- Public Member Functions inherited from BotAI
 BotAI (Texture *, Vec2, Vec2, int, int, int, int, Map *)
 
 ~BotAI ()
 
void playerLineOfSight (Player *, Map *)
 
virtual void updateMovement (Player *, Map *, float)
 
void drawPath (SDL_Renderer *, Vec2 target)
 
Vec2 getLastNodePosition ()
 
bool getRunning ()
 
- Public Member Functions inherited from Creature
 Creature (Texture *, Vec2, Vec2, int, int, int, int)
 
 ~Creature ()
 
void updatePosition (float)
 
void setVelocities (Vec2)
 
Vec2 getVelocities ()
 
void displayTiles (SDL_Renderer *, Map *)
 
void collisionUpdate (Map *, float)
 
void collisionUpdate (Entity *, float)
 
- Public Member Functions inherited from Entity
 Entity (Texture *, Vec2, Vec2, int, int, int, int)
 
 ~Entity ()
 
void display (SDL_Renderer *)
 
void setPosition (Vec2)
 
Vec2 getPosition ()
 
int getWidth ()
 
int getHeight ()
 

Additional Inherited Members

- Protected Member Functions inherited from BotAI
void updateMovementVelocities (float, bool)
 
- Protected Member Functions inherited from Creature
float collision (Map *, float, float, float, int, int, int, int, char)
 
void displayCollisionTest (SDL_Renderer *, Map *, int, int, int, int)
 
- Protected Attributes inherited from BotAI
AStaraStar
 
Vec2 moveTarget
 
Vec2 nextPosition
 
Vec2 lastNode
 
bool running
 
- Protected Attributes inherited from Creature
Vec2 velocities
 
int minX
 
int maxX
 
int minY
 
int maxY
 
- Protected Attributes inherited from Entity
Vec2 position
 
Vec2 source
 
int spriteWidth
 
int spriteHeight
 
int width
 
int height
 
Texturetexture
 

Detailed Description

Creates a BotA object that inherits BotAI. Creates a BotA object that inherits BotAI and contains the details for the BotA.

Constructor & Destructor Documentation

BotA::BotA ( Texture inTexture,
Vec2  inPos,
int  w,
int  h,
Map map 
)

Constructs an BotA object

Parameters
Texture* a pointer to the Texture
Vec2the position of the Player
intthe width of the BotA
intthe height of the BotA
Map* A pointer to the map
BotA::~BotA ( )

Destructs an BotA object


The documentation for this class was generated from the following files: