Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

playerselector.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                              dropdownselector
00003                              -------------------
00004     copyright            : (C)  2006 by Martin Bickel
00005     email                : <bickel@asc-hq.org>
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef playerselectorH
00018 #define playerselectorH
00019 
00020 #include "multilistbox.h"
00021 #include "../gamemap.h"
00022 
00023 class PlayerSelector : public MultiListBox {
00024       GameMap* gamemap;
00025       typedef PG_ListBoxDataItem<int> Item;
00026       void setup();
00027       int suppressPlayers;
00028    public:
00029       PlayerSelector (PG_Widget *parent, const PG_Rect &r, GameMap* map, bool multiselect = true, int suppress = 0 );
00030       int getSelectedPlayers();
00031       void setSelection( int s );
00032 };
00033 
00034 
00035 #endif

Generated on Tue Jun 24 01:27:50 2008 for Advanced Strategic Command by  doxygen 1.4.2