2222222

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

CXK Class Reference

CXK Class Reference

CXK Class. More...

#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

Author:
Zhang Xinyu school EE of SWJTU &leeds joint school
Date:
MAY 2019

Definition at line 16 of file CXK.h.


Constructor & Destructor Documentation

CXK (  )

Constructor.

Definition at line 4 of file CXK.cpp.

~CXK (  )

Destrctor.

Definition at line 9 of file CXK.cpp.


Member Function Documentation

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.

Definition at line 71 of file CXK.cpp.

void draw ( N5110 lcd )

Set the CXKdraw @ param value that updated _x is x, _y is y (_x,_y)

Definition at line 25 of file CXK.cpp.

int get_score (  )

Set the CXKscore @ returns the score (score) @ details score = 0.

Definition at line 75 of file CXK.cpp.

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.

Definition at line 14 of file CXK.cpp.

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.

Definition at line 37 of file CXK.cpp.