Aiming Wu / Mbed 2 deprecated 2645_Assignment

Dependencies:   mbed N5110

Embed: (wiki syntax)

« Back to documentation index

Begin Class Reference

Begin Class Reference

Begin class. More...

#include <Begin.h>

Public Member Functions

 Begin ()
 Constructor.
 ~Begin ()
 Destructor.
void init ()
 Initialise all parameters of the Begin.
int draw (N5110 &lcd, Gamepad &pad)
 Draw the bird, wall1 and live scores.
int get_score (N5110 &lcd)
 Get the live score.

Detailed Description

Begin class.

Library to combine the Bird and the Wall1

Author:
Wu Aiming
Date:
May 2019

Definition at line 17 of file Begin.h.


Constructor & Destructor Documentation

Begin (  )

Constructor.

Definition at line 3 of file Begin.cpp.

~Begin (  )

Destructor.

Definition at line 8 of file Begin.cpp.


Member Function Documentation

int draw ( N5110 &  lcd,
Gamepad pad 
)

Draw the bird, wall1 and live scores.

Parameters:
lcd,pad
Returns:
The number to test whether the bird crash the wall1

Use the method to use function within N5110.h and Gamepad.h file

Definition at line 28 of file Begin.cpp.

int get_score ( N5110 &  lcd )

Get the live score.

Parameters:
lcd
Returns:
The live score

Definition at line 71 of file Begin.cpp.

void init (  )

Initialise all parameters of the Begin.

Definition at line 13 of file Begin.cpp.