Missile Command Game

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
lwills
Date:
Wed Jun 24 21:09:03 2020 +0000
Revision:
0:09aa1ecd6c39
Child:
1:5724f2947554
Missile Command shell

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lwills 0:09aa1ecd6c39 1 //=================================================================
lwills 0:09aa1ecd6c39 2 // The header file is for module "player"
lwills 0:09aa1ecd6c39 3 //
lwills 0:09aa1ecd6c39 4 // Copyright 2020 Georgia Tech. All rights reserved.
lwills 0:09aa1ecd6c39 5 // The materials provided by the instructor in this course are for
lwills 0:09aa1ecd6c39 6 // the use of the students currently enrolled in the course.
lwills 0:09aa1ecd6c39 7 // Copyrighted course materials may not be further disseminated.
lwills 0:09aa1ecd6c39 8 // This file must not be made publicly available anywhere.
lwills 0:09aa1ecd6c39 9 //==================================================================
lwills 0:09aa1ecd6c39 10
lwills 0:09aa1ecd6c39 11 #ifndef PLAYER_PRIVATE_H
lwills 0:09aa1ecd6c39 12 #define PLAYER_PRIVATE_H
lwills 0:09aa1ecd6c39 13
lwills 0:09aa1ecd6c39 14 #include "mbed.h"
lwills 0:09aa1ecd6c39 15 #include "globals.h"
lwills 0:09aa1ecd6c39 16 #include "player_public.h"
lwills 0:09aa1ecd6c39 17
lwills 0:09aa1ecd6c39 18 //==== [private settings] ====
lwills 0:09aa1ecd6c39 19 #define PLAYER_INIT_X 60
lwills 0:09aa1ecd6c39 20 #define PLAYER_INIT_Y 100
lwills 0:09aa1ecd6c39 21 #define PLAYER_DELTA 3 // used in design of player, pixels to move, euclidean distance
lwills 0:09aa1ecd6c39 22 #define PLAYER_WIDTH 10
lwills 0:09aa1ecd6c39 23 #define PLAYER_HEIGHT 3
lwills 0:09aa1ecd6c39 24 #define PLAYER_COLOR 0x0000FF //blue
lwills 0:09aa1ecd6c39 25 #define PLAYER_MISSILE_SPEED 3
lwills 0:09aa1ecd6c39 26 #define PLAYER_MISSILE_COLOR 0x0000FF //blue
lwills 0:09aa1ecd6c39 27
lwills 0:09aa1ecd6c39 28
lwills 0:09aa1ecd6c39 29 //==== [private type] ====
lwills 0:09aa1ecd6c39 30
lwills 0:09aa1ecd6c39 31 void player_draw(int color);
lwills 0:09aa1ecd6c39 32 void player_missile_draw(PLAYER_MISSILE* missile, int color);
lwills 0:09aa1ecd6c39 33
lwills 0:09aa1ecd6c39 34 //==== [private function] ====
lwills 0:09aa1ecd6c39 35
lwills 0:09aa1ecd6c39 36
lwills 0:09aa1ecd6c39 37 #endif //PLAYER_PRIVATE_H
lwills 0:09aa1ecd6c39 38