game for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

graphics.h

Committer:
Sterofin
Date:
2018-11-30
Revision:
5:a16af8f3fea9
Parent:
4:af9d6e3b8a29

File content as of revision 5:a16af8f3fea9:

#ifndef GRAPHICS_H
#define GRAPHICS_H


/**
 * Draws the player. This depends on the player state, so it is not a DrawFunc.
 */
void draw_player(int u, int v, int key);

/**
 * Takes a string image and draws it to the screen. The string is 121 characters
 * long, and represents an 11x11 tile in row-major ordering (across, then down,
 * like a regular multi-dimensional array). The available colors are:
 *      R = Red
 *      Y = Yellow
 *      G = Green
 *      D = Brown ("dirt")
 *      5 = Light grey (50%)
 *      3 = Dark grey (30%)
 *      Any other character is black
 * More colors can be easily added by following the pattern already given.
 */
void draw_img(int u, int v, const char* img);

/**
 * DrawFunc functions.
 * These can be used as the MapItem draw functions.
 */
void draw_nothing(int u, int v);
void draw_wall(int u, int v);
void draw_plant(int u, int v);
void draw_netPortal(int u, int v);
void draw_terminal(int u, int v);
void draw_hacked_terminal(int u, int v);
void draw_NPC(int u, int v);
void draw_door(int u, int v);
void draw_boots(int u, int v);
void draw_printer(int u, int v);
void draw_teleport(int u, int v);
void draw_gun(int u, int v);

/**
 * Draw the upper status bar.
 */
void draw_upper_status(int x, int y);

/**
 * Draw the lower status bar.
 */
void draw_lower_status(int money);

/**
 * Draw the border for the map.
 */
void draw_border();

void draw_menu_1();
void draw_menu_2();

#endif // GRAPHICS_H