Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
|
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>
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 | |
AStar * | aStar |
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 |
Texture * | texture |
Creates a BotA object that inherits BotAI. Creates a BotA object that inherits BotAI and contains the details for the BotA.
BotA::~BotA | ( | ) |
Destructs an BotA object