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
PeopleEngine Class Reference
PeopleEngine class. More...
#include <PeopleEngine.h>
Public Member Functions | |
| PeopleEngine () | |
| constructor | |
| ~PeopleEngine () | |
| destructor | |
| void | init () |
| initialize the position of people | |
| void | read_input (Gamepad &pad) |
| read the polar input from Joystick | |
| void | update () |
| update the position of people according to pad input(Joystick) | |
| void | draw (N5110 &lcd, int flag) |
| draw the basic element of game: box,start circle and destination circle and main object(people) | |
| Vector2D | get_pos () |
| mutators check whether the collision happens | |
Detailed Description
PeopleEngine class.
set a Engine of 'People' and do some basic check
Definition at line 15 of file PeopleEngine.h.
Constructor & Destructor Documentation
| PeopleEngine | ( | ) |
constructor
Definition at line 3 of file PeopleEngine.cpp.
| ~PeopleEngine | ( | ) |
destructor
Definition at line 8 of file PeopleEngine.cpp.
Member Function Documentation
| void draw | ( | N5110 & | lcd, |
| int | flag | ||
| ) |
draw the basic element of game: box,start circle and destination circle and main object(people)
- Parameters:
-
lcd flag(int)
Definition at line 32 of file PeopleEngine.cpp.
| Vector2D get_pos | ( | ) |
mutators check whether the collision happens
Definition at line 41 of file PeopleEngine.cpp.
| void init | ( | ) |
initialize the position of people
Definition at line 13 of file PeopleEngine.cpp.
| void read_input | ( | Gamepad & | pad ) |
read the polar input from Joystick
Definition at line 17 of file PeopleEngine.cpp.
| void update | ( | ) |
update the position of people according to pad input(Joystick)
Definition at line 24 of file PeopleEngine.cpp.
Generated on Thu Jul 14 2022 12:45:25 by
1.7.2