obstacles for the map

Embed: (wiki syntax)

« Back to documentation index

Wall Class Reference

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

Wall (  )

Class constructor.

Definition at line 4 of file Wall.cpp.

~Wall (  )

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:
lcdDisplay used to render the wall

Definition at line 70 of file Wall.cpp.

int getHeigth (  )

Getter for the the heigth of the wall object.

Definition at line 38 of file Wall.cpp.

int getPosX (  )

Getter for the the absolute X cohordinate.

Definition at line 28 of file Wall.cpp.

int getPosY (  )

Getter for the the absolute Y cohordinate.

Definition at line 33 of file Wall.cpp.

int getScenePosX (  )

Getter for the the X cohordinate relative to the screen.

Definition at line 48 of file Wall.cpp.

int getScenePosY (  )

Getter for the the Y cohordinate relative to the screen.

Definition at line 53 of file Wall.cpp.

int getWidth (  )

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:
xAbsolute X cohordinate
yAbsolute y cohordinate
heigthHeigth of the wall object
widthWidth 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:
xX 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:
yY cohordinate relative to the screens

Definition at line 63 of file Wall.cpp.