Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
creature.h
1 #pragma once
2 #ifndef CREATURE_H
3 #define CREATURE_H
4 
5 #include "entity.h"
6 
10 class Creature : public Entity
11 {
12 protected:
13  /*velocities of the Creature*/
14  float velocityX;
15  float velocityY;
16 public:
24  Creature(Texture *, float, float);
25 
30  ~Creature();
31 
37  void setVelocityX(float);
38 
44  void setVelocityY(float);
45 
50  void updateX(float);
51 
56  void updateY(float);
57 
62  float getVelocityX();
63 
68  float getVelocityY();
69 };
70 #endif
Creates a Creature object that inherits Entity.
Definition: creature.h:10
float getVelocityY()
Definition: creature.cpp:73
Creature(Texture *, float, float)
Definition: creature.cpp:6
float getVelocityX()
Definition: creature.cpp:64
void setVelocityY(float)
Definition: creature.cpp:37
~Creature()
Definition: creature.cpp:21
Creates an Entity object Creates an Entity object with a Texture (including variables for the source ...
Definition: entity.h:13
void updateY(float)
Definition: creature.cpp:55
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
void updateX(float)
Definition: creature.cpp:46
void setVelocityX(float)
Definition: creature.cpp:28