ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18zc2

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Board Class Reference

Board Class Reference

Board Class. More...

#include <Board.h>

Public Member Functions

void init (int x, int y, int length, int width)
 initial the first data of board
void draw (N5110 &lcd)
 use screeen function to draw a board
void update (Direction d, float mag)
 update borad to position to realise the effect of speed
void add_score ()
 score generation function
int get_score ()
 score reading function
Vector2D get_pos ()
 position reading function

Detailed Description

Board Class.

Author:
Chen Zirui, University of Leeds Board data and its functions list
Date:
May 2020

Definition at line 13 of file Board.h.


Member Function Documentation

void add_score (  )

score generation function

Definition at line 73 of file Board.cpp.

void draw ( N5110 lcd )

use screeen function to draw a board

Definition at line 16 of file Board.cpp.

Vector2D get_pos (  )

position reading function

Definition at line 82 of file Board.cpp.

int get_score (  )

score reading function

Definition at line 77 of file Board.cpp.

void init ( int  x,
int  y,
int  length,
int  width 
)

initial the first data of board

Definition at line 5 of file Board.cpp.

void update ( Direction  d,
float  mag 
)

update borad to position to realise the effect of speed

Definition at line 20 of file Board.cpp.