Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
player.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 "creature.h"
7 
12 class Player : public Creature
13 {
14 private:
16  bool up, down, left, right;
17 public:
25  Player(Texture*, Vec2, int, int);
26 
30  ~Player();
31 
36  void commandUp(bool);
37 
42  void commandDown(bool);
43 
48  void commandLeft(bool);
49 
54  void commandRight(bool);
55 
59  void handleCommands();
60 };
void commandDown(bool)
Definition: player.cpp:29
Creates a Creature object that inherits Entity. Creates a Creature object that inherits Entity and co...
Definition: creature.h:13
bool left
Definition: player.h:16
void handleCommands()
Definition: player.cpp:56
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition: vec2.h:7
bool up
Definition: player.h:16
void commandUp(bool)
Definition: player.cpp:20
Player(Texture *, Vec2, int, int)
Definition: player.cpp:6
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
bool right
Definition: player.h:16
~Player()
Definition: player.cpp:13
bool down
Definition: player.h:16
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and co...
Definition: player.h:12
void commandLeft(bool)
Definition: player.cpp:38
void commandRight(bool)
Definition: player.cpp:47