Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Interface Class Reference
#include <Interface.h>
Public Member Functions | |
Interface () | |
Constructor. | |
~Interface () | |
Destructor. | |
void | init () |
initalises the flag varibales | |
void | Welcome (N5110 &lcd, Gamepad &pad) |
set a welcome interface for my game | |
void | menu (N5110 &lcd, Gamepad &pad) |
set an option menu | |
void | undefined_rate (N5110 &lcd, Gamepad &pad) |
set an user-defined menu | |
void | undefined_max (N5110 &lcd, Gamepad &pad) |
set an user-defined menu | |
void | game_over (N5110 &lcd, Gamepad &pad) |
if health of people is zero, game over~ | |
int | check_pause (N5110 &lcd, Gamepad &pad, int paused_flag, float increment, int max) |
check pause for start botton | |
void | count_down (N5110 &lcd) |
count down and draw in lcd | |
void | update_record (float increment, int max) |
update record | |
void | record (N5110 &lcd, Gamepad &pad) |
Record interface. | |
void | victory (N5110 &lcd, Gamepad &pad) |
Victory interface. | |
void | simple_game (N5110 &lcd, Gamepad &pad) |
simple game interface | |
void | set_count_down (int count_down) |
accessors set the count_down flag |
Detailed Description
Interface class.
welcome,meun,pause interface
Definition at line 20 of file Interface.h.
Constructor & Destructor Documentation
Interface | ( | ) |
Constructor.
Definition at line 17 of file Interface.cpp.
~Interface | ( | ) |
Destructor.
Definition at line 22 of file Interface.cpp.
Member Function Documentation
check pause for start botton
Definition at line 161 of file Interface.cpp.
void count_down | ( | N5110 & | lcd ) |
count down and draw in lcd
Definition at line 183 of file Interface.cpp.
if health of people is zero, game over~
Definition at line 145 of file Interface.cpp.
void init | ( | ) |
initalises the flag varibales
Definition at line 27 of file Interface.cpp.
set an option menu
Definition at line 63 of file Interface.cpp.
Record interface.
Definition at line 200 of file Interface.cpp.
void set_count_down | ( | int | count_down ) |
accessors set the count_down flag
- Parameters:
-
count_down(int)
Definition at line 250 of file Interface.cpp.
simple game interface
Definition at line 234 of file Interface.cpp.
set an user-defined menu
Definition at line 118 of file Interface.cpp.
set an user-defined menu
Definition at line 90 of file Interface.cpp.
void update_record | ( | float | increment, |
int | max | ||
) |
update record
Definition at line 192 of file Interface.cpp.
Victory interface.
Definition at line 219 of file Interface.cpp.
set a welcome interface for my game
Definition at line 39 of file Interface.cpp.
Generated on Thu Jul 14 2022 12:45:25 by
