2222222
CXK Class Reference
#include <CXK.h>
Public Member Functions | |
| CXK () | |
| Constructor. | |
| ~CXK () | |
| Destrctor. | |
| void | init (int x, int y, int height, int width) |
| Set the CXKinit @ param value that updated (x,y,height, width) @ details the (x,y) mean the centre point figure of cxk ,height meansheight of CXK. | |
| void | draw (N5110 &lcd) |
| Set the CXKdraw @ param value that updated _x is x, _y is y (_x,_y) | |
| void | update (Direction d, float vara) |
| Set the CXKupdate @ param drection of movement (direction) @ vara means magenitude of the jiysticks @ details North is decrement as origin is at the top-left so decreasing moves up. | |
| void | add_score () |
| Set the CXKscore @ param the score of the game palyer (score) @ details add the score when meet the order of the code. | |
| int | get_score () |
| Set the CXKscore @ returns the score (score) @ details score = 0. | |
Detailed Description
CXK Class.
defined the cxk and the add score funvtion
- Date:
- MAY 2019
Definition at line 16 of file CXK.h.
Constructor & Destructor Documentation
Member Function Documentation
| void add_score | ( | ) |
| void draw | ( | N5110 & | lcd ) |
| int get_score | ( | ) |
| void init | ( | int | x, |
| int | y, | ||
| int | height, | ||
| int | width | ||
| ) |
Generated on Sat Jul 16 2022 14:14:20 by
1.7.2