2222222
Ball Class Reference
#include <Ball.h>
Public Member Functions | |
| Ball () | |
| Constructor. | |
| ~Ball () | |
| Destrctor. | |
| void | init (int size, int speed, int direction) |
| Set the ball init. | |
| void | draw (N5110 &lcd) |
| Set the balldraw @ details lcd.drawCircle(_x,_y,_size,FILL_BLACK); @ param value that updated (_x,_y, _size) | |
| void | update () |
| Set the update. | |
| void | set_velocity (Vector2D v) |
| accessors and mutators | |
| void | set_pos (Vector2D p) |
| Set the balldraw @ details set the value of position of LCD cooresponding p= {x,y}; @ param value that updated (p) @ returns p. | |
Detailed Description
Ball Class.
Controls the ball in Ubeautiful CXK game
- Date:
- MAY 2019
Definition at line 16 of file Ball.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
| void init | ( | int | size, |
| int | speed, | ||
| int | direction | ||
| ) |
| void set_pos | ( | Vector2D | p ) |
| void set_velocity | ( | Vector2D | v ) |
Generated on Sat Jul 16 2022 14:14:20 by
1.7.2