Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
enemy.h
1 #pragma once
2 #ifndef ENEMY_H
3 #define ENEMY_H
4 
5 #include "creature.h"
6 
10 class Enemy : public Creature
11 {
12 protected:
13  /*the type of the Enemy*/
14  int type;
15  /*deleteable bool*/
16  bool deleteable;
17  /*the speed of the enemy*/
18  float speed;
19 public:
28  Enemy(Texture *, float, float, int);
29 
34  ~Enemy();
35 
40  void typeSetup();
41 
47  void setDeletable(bool);
48 
53  bool getDeletable();
54 
60  void setSpeed(float);
61 
66  float getSpeed();
67 
72  int getType();
73 };
74 #endif
int getType()
Definition: enemy.cpp:85
Creates a Creature object that inherits Entity.
Definition: creature.h:10
~Enemy()
Definition: enemy.cpp:22
Enemy(Texture *, float, float, int)
Definition: enemy.cpp:6
void setDeletable(bool)
Definition: enemy.cpp:49
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 setSpeed(float)
Definition: enemy.cpp:76
bool getDeletable()
Definition: enemy.cpp:58
void typeSetup()
Definition: enemy.cpp:29
Creates an Enemy object that inherits MapObject which in turn inherits Creature.
Definition: enemy.h:10
float getSpeed()
Definition: enemy.cpp:67