obstacles for the map
« Back to documentation index
Wall Class Reference
Column.h .
More...
#include <Wall.h >
Public Member Functions
Wall ()
Class constructor.
~Wall ()
Class destructor.
int getPosX ()
Getter for the the absolute X cohordinate.
int getPosY ()
Getter for the the absolute Y cohordinate.
int getHeigth ()
Getter for the the heigth of the wall object.
int getWidth ()
Getter for the the width of the wall object.
int getScenePosX ()
Getter for the the X cohordinate relative to the screen.
int getScenePosY ()
Getter for the the Y cohordinate relative to the screen.
void setScenePosX (int x)
Setter for the the X cohordinate relative to the screen.
void setScenePosY (int y)
Setter for the the Y cohordinate relative to the screen.
void init (int x, int y, int heigth, int width)
initialise the wall object
void draw (N5110 &lcd)
Render the wall object on the screen.
Detailed Description
Column.h .
This library handles a rectangular type of obstacle.
Definition at line 12 of file Wall.h .
Constructor & Destructor Documentation
Class constructor.
Definition at line 4 of file Wall.cpp .
Class destructor.
Definition at line 10 of file Wall.cpp .
Member Function Documentation
void draw
(
N5110 &
lcd )
Render the wall object on the screen.
Parameters:
lcd Display used to render the wall
Definition at line 70 of file Wall.cpp .
Getter for the the heigth of the wall object.
Definition at line 38 of file Wall.cpp .
Getter for the the absolute X cohordinate.
Definition at line 28 of file Wall.cpp .
Getter for the the absolute Y cohordinate.
Definition at line 33 of file Wall.cpp .
Getter for the the X cohordinate relative to the screen.
Definition at line 48 of file Wall.cpp .
Getter for the the Y cohordinate relative to the screen.
Definition at line 53 of file Wall.cpp .
Getter for the the width of the wall object.
Definition at line 43 of file Wall.cpp .
void init
(
int
x ,
int
y ,
int
heigth ,
int
width
)
initialise the wall object
Parameters:
x Absolute X cohordinate
y Absolute y cohordinate
heigth Heigth of the wall object
width Width of the wall object
Definition at line 16 of file Wall.cpp .
void setScenePosX
(
int
x )
Setter for the the X cohordinate relative to the screen.
Parameters:
x X cohordinate relative to the screens
Definition at line 58 of file Wall.cpp .
void setScenePosY
(
int
y )
Setter for the the Y cohordinate relative to the screen.
Parameters:
y Y cohordinate relative to the screens
Definition at line 63 of file Wall.cpp .