finished p2-2
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: player_public.h
- Revision:
- 1:05e3f86df6d5
- Parent:
- 0:95264f964374
- Child:
- 2:7abebe259d59
--- a/player_public.h Mon Mar 29 21:17:26 2021 -0400 +++ b/player_public.h Sat Apr 17 02:34:03 2021 +0000 @@ -14,13 +14,15 @@ typedef struct { int y; // The y-coordinate of knife current position - int height; int score; // Current score int knife_length; boundingBox knife_boundingBox; bool player_has_knife; // The knife status: 0->In the air 1->With Player } PLAYER; +typedef void (*DrawFunc)(boundingBox b); + + /** getter for user to acquire info without accessing structure */ PLAYER player_get_info(void); @@ -52,6 +54,7 @@ */ void player_draw(int color); +boundingBox getKnifeBounding(void); /** Reset knife's coordinates so that it comes back to the player's position, * then redraw the knife */