Creates a Block object that inherits MapObject.
More...
#include <block.h>
|
| | Block (Texture *, float, float, int, int) |
| |
| | ~Block () |
| |
| void | typeSetup (int) |
| |
| int | getType () |
| |
| | MapObject (Texture *, float, float) |
| |
| | ~MapObject () |
| |
| void | setCollidable (bool) |
| |
| bool | getCollidable () |
| |
| void | setDamaging (bool) |
| |
| bool | getDamaging () |
| |
| void | setDeletable (bool) |
| |
| bool | getDeletable () |
| |
| void | setVelocity (float) |
| |
| void | updateX (float) |
| |
| float | getVelocity () |
| |
| | Entity (Texture *, float, float, int, int) |
| |
| | ~Entity () |
| |
| void | display (SDL_Renderer *) |
| |
| void | setX (float) |
| |
| void | setY (float) |
| |
| float | getX () |
| |
| float | getY () |
| |
| void | setSrcX (float) |
| |
| void | setSrcY (float) |
| |
| int | getSrcX () |
| |
| int | getSrcY () |
| |
|
|
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 Block object that inherits MapObject.
| Block::Block |
( |
Texture * |
inputTexture, |
|
|
float |
inputX, |
|
|
float |
inputY, |
|
|
int |
inType, |
|
|
int |
backgroundType |
|
) |
| |
Constructs a Block object Constructs the Block object.
- Parameters
-
| Texture* | a pointer to a Texture loaded into memory. |
| float | initial x position. |
| float | initial y position. |
| int | the Block type. |
| int | the type of background. |
De-constructs a Block object De-constructs the Block object
Getter # type
- Returns
- int the type.
| void Block::typeSetup |
( |
int |
backgroundType | ) |
|
Sets the type of the Block Uses the value of type to set up initial values for the Block
- Parameters
-
| int | the type of background. |
The documentation for this class was generated from the following files:
- PGGAssignment1SDL/block.h
- PGGAssignment1SDL/block.cpp