1 /***************************************************************************
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 ***************************************************************************/
27 //!This is the engine for the whole battlesystem.
28 /**This is the engine for the whole battlesystem.
29 * One of the few parts that I plan make fully portable.
30 *\todo LOTS (I think ;)
31 *@author Michael Andreen
39 /**Sets the name that represents this fleet. Might be different a name
40 * like foobar or some coordinates like 1:1:1. The name doesn't have to be unique,
41 * since it's up to the rest of the program to handle that part.
44 void setName(std::string sName);
45 /**Returns the name of this fleet.
50 /**The race string decides what type of ships this fleet can have.
51 * The values must be feeded into this class.
52 * \param sRace This is just the name of the race. It's case-sensitive.
53 * \return If the race is available this function returns true, if not false is returned. The race is set in both cases though.
56 bool setRace(std::string sRace);
57 /**Just returns what race this fleet belongs to..
58 * \return The race, represented as a string.
63 /**Returns the total number of ships in this fleet
71 std::map<std::string, std::vector<int> > m_Fleet;
73 static std::map<std::string, UnitType> s_Units;
74 static std::map<std::string, std::vector<int> > s_Races;