2035

Dependencies:   4DGL-uLCD-SE mbed wave_player

Fork of missile_command by ECE 2035 TA

Committer:
tianyeapply
Date:
Wed Nov 09 17:04:42 2016 +0000
Revision:
3:7e33224a6f1d
Parent:
0:532cb55d6136

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arvahsu 0:532cb55d6136 1 /* Gatech ECE2035 2014 FALL missile command
arvahsu 0:532cb55d6136 2 * Copyright (c) 2014 Gatech ECE2035
arvahsu 0:532cb55d6136 3 *
arvahsu 0:532cb55d6136 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
arvahsu 0:532cb55d6136 5 * of this software and associated documentation files (the "Software"), to deal
arvahsu 0:532cb55d6136 6 * in the Software without restriction, including without limitation the rights
arvahsu 0:532cb55d6136 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
arvahsu 0:532cb55d6136 8 * copies of the Software, and to permit persons to whom the Software is
arvahsu 0:532cb55d6136 9 * furnished to do so, subject to the following conditions:
arvahsu 0:532cb55d6136 10 *
arvahsu 0:532cb55d6136 11 * The above copyright notice and this permission notice shall be included in
arvahsu 0:532cb55d6136 12 * all copies or substantial portions of the Software.
arvahsu 0:532cb55d6136 13 *
arvahsu 0:532cb55d6136 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
arvahsu 0:532cb55d6136 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
arvahsu 0:532cb55d6136 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
arvahsu 0:532cb55d6136 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
arvahsu 0:532cb55d6136 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
arvahsu 0:532cb55d6136 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
arvahsu 0:532cb55d6136 20 * SOFTWARE.
arvahsu 0:532cb55d6136 21 */
arvahsu 0:532cb55d6136 22
arvahsu 0:532cb55d6136 23 // Template of player header file
arvahsu 0:532cb55d6136 24 #ifndef PLAYER_H
arvahsu 0:532cb55d6136 25 #define PLAYER_H
arvahsu 0:532cb55d6136 26
arvahsu 0:532cb55d6136 27 // Example of some player settings
arvahsu 0:532cb55d6136 28 #define PLAYER_WIDTH 10
arvahsu 0:532cb55d6136 29 #define PLAYER_HEIGHT 3
arvahsu 0:532cb55d6136 30 #define PLAYER_DELTA 3
tianyeapply 3:7e33224a6f1d 31 #define PLAYER_COLOR 0x4DB849
tianyeapply 3:7e33224a6f1d 32 #include "missile_public.h"
tianyeapply 3:7e33224a6f1d 33 //#include "missile_public.h"
arvahsu 0:532cb55d6136 34
arvahsu 0:532cb55d6136 35 /** Get the information of city
arvahsu 0:532cb55d6136 36 @brief x and y are the top left corner of the player drawing
arvahsu 0:532cb55d6136 37 @param x x-coordinate
arvahsu 0:532cb55d6136 38 @param y y-coordinate
arvahsu 0:532cb55d6136 39 */
tianyeapply 3:7e33224a6f1d 40 #define MAX_NUM_PLAYER_MISSILE 5
tianyeapply 3:7e33224a6f1d 41
arvahsu 0:532cb55d6136 42 void player_draw(int x, int y);
tianyeapply 3:7e33224a6f1d 43 void player_clear(int x_clear,int y_clear);
tianyeapply 3:7e33224a6f1d 44 void player_missile_create(int x2,int y2);
tianyeapply 3:7e33224a6f1d 45 void player_missile_update_position(void);
tianyeapply 3:7e33224a6f1d 46 void player_missile_draw(MISSILE missile, int color);
tianyeapply 3:7e33224a6f1d 47 void player_missile_generator(int x1, int y1);
tianyeapply 3:7e33224a6f1d 48 MISSILE player_missile_get_info(int index);
tianyeapply 3:7e33224a6f1d 49 void player_missile_set_exploded(int index);
tianyeapply 3:7e33224a6f1d 50 void player_set_missile_speed(int speed);
tianyeapply 3:7e33224a6f1d 51 void life_reduce(int x);
tianyeapply 3:7e33224a6f1d 52 int life_generate(int life);
tianyeapply 3:7e33224a6f1d 53 int num_missile_avi(int x);
tianyeapply 3:7e33224a6f1d 54 void city_destory();
tianyeapply 3:7e33224a6f1d 55 void point_get();
tianyeapply 3:7e33224a6f1d 56 void display_score(int x);
tianyeapply 3:7e33224a6f1d 57 void advanced_level(int speed, int interval);
tianyeapply 3:7e33224a6f1d 58 void display_level(int x);
tianyeapply 3:7e33224a6f1d 59 void circle_explosion(int x,int y);
tianyeapply 3:7e33224a6f1d 60 void use_fourth_pb();
arvahsu 0:532cb55d6136 61
arvahsu 0:532cb55d6136 62 #endif //PLAYER_H