Jamie Slowgrove - PGG Assignment 1 - SDL
Main Page
Classes
Files
File List
All
Classes
Functions
PGGAssignment1SDL
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
Enemy::getType
int getType()
Definition:
enemy.cpp:85
Creature
Creates a Creature object that inherits Entity.
Definition:
creature.h:10
Enemy::~Enemy
~Enemy()
Definition:
enemy.cpp:22
Enemy::Enemy
Enemy(Texture *, float, float, int)
Definition:
enemy.cpp:6
Enemy::setDeletable
void setDeletable(bool)
Definition:
enemy.cpp:49
Texture
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition:
texture.h:13
Enemy::setSpeed
void setSpeed(float)
Definition:
enemy.cpp:76
Enemy::getDeletable
bool getDeletable()
Definition:
enemy.cpp:58
Enemy::typeSetup
void typeSetup()
Definition:
enemy.cpp:29
Enemy
Creates an Enemy object that inherits MapObject which in turn inherits Creature.
Definition:
enemy.h:10
Enemy::getSpeed
float getSpeed()
Definition:
enemy.cpp:67
Generated on Fri Jan 16 2015 17:55:16 for Jamie Slowgrove - PGG Assignment 1 - SDL by
1.8.8