Jamie Slowgrove - PGG Assignment 1 - SDL
Main Page
Classes
Files
File List
All
Classes
Functions
PGGAssignment1SDL
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
Creature
Creates a Creature object that inherits Entity.
Definition:
creature.h:10
Creature::getVelocityY
float getVelocityY()
Definition:
creature.cpp:73
Creature::Creature
Creature(Texture *, float, float)
Definition:
creature.cpp:6
Creature::getVelocityX
float getVelocityX()
Definition:
creature.cpp:64
Creature::setVelocityY
void setVelocityY(float)
Definition:
creature.cpp:37
Creature::~Creature
~Creature()
Definition:
creature.cpp:21
Entity
Creates an Entity object Creates an Entity object with a Texture (including variables for the source ...
Definition:
entity.h:13
Creature::updateY
void updateY(float)
Definition:
creature.cpp:55
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
Creature::updateX
void updateX(float)
Definition:
creature.cpp:46
Creature::setVelocityX
void setVelocityX(float)
Definition:
creature.cpp:28
Generated on Fri Jan 16 2015 17:55:16 for Jamie Slowgrove - PGG Assignment 1 - SDL by
1.8.8