Advanced Strategic Command
playerselector.h
Go to the documentation of this file.
1 /***************************************************************************
2  dropdownselector
3  -------------------
4  copyright : (C) 2006 by Martin Bickel
5  email : <bickel@asc-hq.org>
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef playerselectorH
18 #define playerselectorH
19 
20 #include "multilistbox.h"
21 #include "../gamemap.h"
22 
23 class PlayerSelector : public MultiListBox {
24  GameMap* gamemap;
26  void setup();
27  int suppressPlayers;
28  public:
29  PlayerSelector (PG_Widget *parent, const PG_Rect &r, GameMap* map, bool multiselect = true, int suppress = 0 );
30  int getSelectedPlayers();
31  void setSelection( int s );
32 };
33 
34 
35 #endif
void setSelection(int s)
PlayerSelector(PG_Widget *parent, const PG_Rect &r, GameMap *map, bool multiselect=true, int suppress=0)
The map. THE central structure of ASC, which holds everything not globally available together...
Definition: gamemap.h:182