Last change
on this file since e5697b1 was e5697b1, checked in by dportnoy <dmp1488@…>, 11 years ago |
Projectile drawing code moved to the GameRender class
|
-
Property mode
set to
100644
|
File size:
794 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/Projectile.h"
|
---|
21 | #include "../../common/WorldMap.h"
|
---|
22 |
|
---|
23 | class GameRender
|
---|
24 | {
|
---|
25 | public:
|
---|
26 | static void drawMap(WorldMap* gameMap);
|
---|
27 | static void drawPlayers(map<unsigned int, Player*>& mapPlayers, ALLEGRO_FONT* font, unsigned int curPlayerId);
|
---|
28 | static void drawProjectiles(map<unsigned int, Projectile>& mapProjectiles, map<unsigned int, Player*>& mapPLayers);
|
---|
29 | };
|
---|
30 |
|
---|
31 | #endif
|
---|
32 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.