Advanced Strategic Command
playercolor.h
Go to the documentation of this file.
1 /***************************************************************************
2  gamemap.h - description
3  -------------------
4  begin : Tue Feb 17 2001
5  copyright : (C) 2001 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 
19 #ifndef playercolorH
20  #define playercolorH
21 
22 #include "graphics/surface.h"
23 
24  class PlayerColor {
25  int playernumber;
26  DI_Color color;
27  public:
28  PlayerColor(int number, const DI_Color& col );
29  int getNum() const { return playernumber; };
30  DI_Color getColor() const { return color; };
31  };
32 
33 #endif
34 
A Device Independent color. Shamelessly pinched from Paragui to reduce coupling.
Definition: surface.h:30
DI_Color getColor() const
Definition: playercolor.h:30
int getNum() const
Definition: playercolor.h:29
PlayerColor(int number, const DI_Color &col)
Definition: playercolor.cpp:21