Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
gem.h
1 #pragma once
2 #ifndef GEM_H
3 #define GEM_H
4 
5 #include "mapObject.h"
6 
10 class Gem : public MapObject
11 {
12 private:
13  /*the type of the Gem*/
14  int type;
15  /*the value of the Gem*/
16  int value;
17 public:
26  Gem(Texture *, float, float, int);
27 
32  ~Gem();
33 
38  void typeSetup();
39 
44  int getValue();
45 
50  int getType();
51 };
52 #endif
Creates a Gem object that inherits MapObject.
Definition: gem.h:10
~Gem()
Definition: gem.cpp:23
Creates a MapObject object that inherits Entity.
Definition: mapObject.h:10
void typeSetup()
Definition: gem.cpp:31
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
int getValue()
Definition: gem.cpp:61
Gem(Texture *, float, float, int)
Definition: gem.cpp:6
int getType()
Definition: gem.cpp:70