Last change
on this file since 6319311 was 6319311, checked in by Dmitry Portnoy <dportnoy@…>, 11 years ago |
Some redfinition issues related to winsock2 are fixed and a few allegro rendering functions are now in GameRender
|
-
Property mode
set to
100644
|
File size:
744 bytes
|
Rev | Line | |
---|
[6319311] | 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 |
|
---|
| 22 | class GameRender
|
---|
| 23 | {
|
---|
| 24 | public:
|
---|
| 25 | static void drawMap(WorldMap* gameMap);
|
---|
| 26 | static void drawPlayers(map<unsigned int, Player>& mapPlayers, ALLEGRO_FONT* font, unsigned int curPlayerId);
|
---|
| 27 | static void drawPlayers(map<unsigned int, Player*>& mapPlayers, ALLEGRO_FONT* font, unsigned int curPlayerId);
|
---|
| 28 | };
|
---|
| 29 |
|
---|
| 30 | #endif
|
---|
| 31 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.