Creates a Gem object that inherits MapObject.
More...
#include <gem.h>
|
bool | collidable |
|
bool | damaging |
|
bool | deleteable |
|
float | velocity |
|
int | minX |
|
int | maxX |
|
bool | moveable |
|
Texture * | texture |
|
int | srcWidth |
|
int | srcHeight |
|
int | srcX |
|
int | srcY |
|
int | width |
|
int | height |
|
float | x |
|
float | y |
|
Creates a Gem object that inherits MapObject.
Gem::Gem |
( |
Texture * |
inputTexture, |
|
|
float |
inputX, |
|
|
float |
inputY, |
|
|
int |
inType |
|
) |
| |
Constructs a Gem object Constructs the Gem object.
- Parameters
-
Texture* | a pointer to a Texture loaded into memory. |
float | initial x position. |
float | initial y position. |
int | the Gem type. |
De-constructs a Gem object De-constructs the Gem object
Getter # type
- Returns
- int the type.
Getter # value
- Returns
- int the value of the gem.
Sets the type of the Gem Uses the value of type to set up initial values for the Gem
The documentation for this class was generated from the following files:
- PGGAssignment1SDL/gem.h
- PGGAssignment1SDL/gem.cpp