Missile Control Game with uLCD
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed wave_player
Fork of missile_command by
player.h@0:532cb55d6136, 2014-10-29 (annotated)
- Committer:
- arvahsu
- Date:
- Wed Oct 29 01:21:34 2014 +0000
- Revision:
- 0:532cb55d6136
- Child:
- 2:eba4ed0263a4
First public version
Who changed what in which revision?
User | Revision | Line number | New 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 |
arvahsu | 0:532cb55d6136 | 31 | #define PLAYER_COLOR 0x0000FF |
arvahsu | 0:532cb55d6136 | 32 | |
arvahsu | 0:532cb55d6136 | 33 | |
arvahsu | 0:532cb55d6136 | 34 | /** Get the information of city |
arvahsu | 0:532cb55d6136 | 35 | @brief x and y are the top left corner of the player drawing |
arvahsu | 0:532cb55d6136 | 36 | @param x x-coordinate |
arvahsu | 0:532cb55d6136 | 37 | @param y y-coordinate |
arvahsu | 0:532cb55d6136 | 38 | */ |
arvahsu | 0:532cb55d6136 | 39 | void player_draw(int x, int y); |
arvahsu | 0:532cb55d6136 | 40 | |
arvahsu | 0:532cb55d6136 | 41 | #endif //PLAYER_H |