1 /***************************************************************************
2 fleet.cpp - description
4 begin : Tue Jan 22 2002
5 copyright : (C) 2002 by Michael Andreen
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
28 //////////////////////////////////////////////////////////////////////////
30 void Fleet::setName(string sName)
35 //////////////////////////////////////////////////////////////////////////
42 //////////////////////////////////////////////////////////////////////////
44 /** This function first sets the race, then it iterates through the the
45 * s_Races and checks if it finds the race it returns true, if it reaches
46 * the end without finding it it returns false.
48 bool Fleet::setRace(std::string sRace)
52 for (map<string, vector<int> >::iterator i = s_Races.begin(); i != s_Races.end(); i++)
54 if (m_sRace == (*i).first)
60 //////////////////////////////////////////////////////////////////////////