Chuong Dong / Mbed 2 deprecated rpg_game_shell

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers graphics.h Source File

graphics.h

00001 #ifndef GRAPHICS_H
00002 #define GRAPHICS_H
00003 
00004 
00005 /**
00006  * Draws the player. This depends on the player state, so it is not a DrawFunc.
00007  */
00008 void draw_player(int u, int v, int key);
00009 
00010 /**
00011  * Takes a string image and draws it to the screen. The string is 121 characters
00012  * long, and represents an 11x11 tile in row-major ordering (across, then down,
00013  * like a regular multi-dimensional array). The available colors are:
00014  *      R = Red
00015  *      Y = Yellow
00016  *      G = Green
00017  *      D = Brown ("dirt")
00018  *      5 = Light grey (50%)
00019  *      3 = Dark grey (30%)
00020  *      Any other character is black
00021  * More colors can be easily added by following the pattern already given.
00022  */
00023 void draw_img(int u, int v, const char* img);
00024 
00025 /**
00026  * DrawFunc functions. 
00027  * These can be used as the MapItem draw functions.
00028  */
00029 void draw_nothing(int u, int v);
00030 void draw_wall(int u, int v);
00031 void draw_plant(int u, int v);
00032 
00033 void draw_sign(int u, int v);
00034 void draw_door_locked(int u, int v);
00035 void draw_door_unlocked(int u, int v);
00036 void draw_flowey_friendly(int u, int v);
00037 void draw_flowey_wink(int u, int v);
00038 void draw_flowey_creepy(int u, int v);
00039 void draw_toby(int u, int v);
00040 void draw_toby_bone(int u, int v);
00041 void draw_red_button(int u, int v);
00042 void draw_green_button(int u, int v);
00043 void draw_blue_button(int u, int v);
00044 void draw_river_man(int u, int v);
00045 void draw_heart(int u, int v);
00046 void draw_start();
00047 void draw_chest(int u, int v);
00048 void draw_menu(char* task, char* hint, int health_count, int key, int chest, int run);
00049 void draw_game_over();
00050 void draw_leaf(int u, int v);
00051 void draw_wood(int u, int v);
00052 /**
00053  * Draw the upper status bar.
00054  */
00055 void draw_upper_status(int x, int y);
00056 
00057 /**
00058  * Draw the lower status bar.
00059  */ 
00060 void draw_lower_status();
00061 
00062 /**
00063  * Draw the border for the map.
00064  */
00065 void draw_border();
00066 
00067 #endif // GRAPHICS_H