source: network-game/client/Client/GameRender.h@ 90eaad2

Last change on this file since 90eaad2 was e6c26b8, checked in by Dmitry Portnoy <dportnoy@…>, 11 years ago

The client dynamically allocates memory for players and passes around a map with player pointers and some includes are now in individual files instead of in Common.h

  • Property mode set to 100644
File size: 636 bytes
Line 
1#ifndef _GAMERENDER_H
2#define _GAMERENDER_H
3
4/*
5 * We don't want to place allegro drawing routines in any classes shared by the client and server
6 * because the server shouldn't require Allegro
7 */
8
9#include "../../common/Compiler.h"
10
11#include <map>
12
13#ifdef WINDOWS
14 #define WIN32_LEAN_AND_MEAN
15#endif
16
17#include <allegro5/allegro_font.h>
18
19#include "../../common/Player.h"
20#include "../../common/WorldMap.h"
21
22class GameRender
23{
24public:
25 static void drawMap(WorldMap* gameMap);
26 static void drawPlayers(map<unsigned int, Player*>& mapPlayers, ALLEGRO_FONT* font, unsigned int curPlayerId);
27};
28
29#endif
30
Note: See TracBrowser for help on using the repository browser.