Peng Jingran / Mbed 2 deprecated Snake_copy

Dependencies:   mbed FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Food Class Reference

Food Class Reference

Food Class. More...

#include <Food.h>

Public Member Functions

 Food ()
 Constructor.
 ~Food ()
 Destructor.
void init ()
 Set the screen.
void draw (N5110 &lcd)
 Draw the screen.
void response ()
 Get the response.
pos returnPos ()
 Get the score.

Detailed Description

Food Class.

Does nothing useful

Author:
Du Xianjie
Date:
May, 2019

Definition at line 25 of file Food.h.


Constructor & Destructor Documentation

Food (  )

Constructor.

Definition at line 6 of file Food.cpp.

~Food (  )

Destructor.

Definition at line 10 of file Food.cpp.


Member Function Documentation

void draw ( N5110 lcd )

Draw the screen.

Parameters:
(N5110&lcd)

Definition at line 19 of file Food.cpp.

void init (  )

Set the screen.

Parameters:
init()

Definition at line 13 of file Food.cpp.

void response (  )

Get the response.

Parameters:
()

Definition at line 25 of file Food.cpp.

pos returnPos (  )

Get the score.

Returns:
the current score

Definition at line 32 of file Food.cpp.