Update of /cvsroot/gcblue/gcb_wx/include/sim
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10910/include/sim
Added Files:
tcUserSelectedGroups.h
Log Message:
--- NEW FILE: tcUserSelectedGroups.h ---
/** @file tcUserSelectedGroups.h
**
** Copyright (C) 2004 Dewitt Colclough (de...@tw...)
** All rights reserved.
**
** This file is part of the Global Conflict Blue (GCB) program.
** GCB is free software; you can redistribute it and/or modify
** it under the terms of version 2 of the GNU General Public License as
** published by the Free Software Foundation.
**
** GCB is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with GCB; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _TCUSERSELECTEDGROUPS_H_
#define _TCUSERSELECTEDGROUPS_H_
#if _MSC_VER > 1000
#pragma once
#endif
#include <map>
#include <vector>
/**
* Tracks ids of grouped units selected by user
*/
class tcUserSelectedGroups
{
public:
void ClearGroups();
std::vector<long> GetGroup(int idx);
void SetGroup(int idx, const std::vector<long>& platforms);
static tcUserSelectedGroups* Get();
private:
std::map<int, std::vector<long> > groupMap;
tcUserSelectedGroups();
~tcUserSelectedGroups();
};
#endif
|