X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Ffleet.h;h=ca2fddfdc616dde9be124c5932b1c6e77c559df2;hp=047fc131844588dc03c3f2b97ec56073f1abb5e7;hb=665ed3eda32aa26a4063dc4eaae694ddc2f12f50;hpb=467ce26be826b047d105bff43c40dc88cd167bda diff --git a/bs/fleet.h b/bs/fleet.h index 047fc13..ca2fddf 100644 --- a/bs/fleet.h +++ b/bs/fleet.h @@ -19,11 +19,14 @@ #define FLEET_H #include +#include #include #include #include "unittype.h" + template class MyComp { public: bool operator()(T,T) { return false; } }; +typedef std::map UnitList; //!This is the engine for the whole battlesystem. /**This is the engine for the whole battlesystem. * One of the few parts that I plan make fully portable. @@ -76,10 +79,10 @@ public: int ETA() const; static void setRaces(std::map >& races); - static void setUnits(std::map& units); + static void setUnits(UnitList& units); static const std::map >& Races(); - static const std::map& Units(); + static const UnitList& Units(); protected: std::string m_sName; @@ -87,7 +90,7 @@ protected: int m_iETA; std::map > m_Fleet; - static std::map s_Units; + static UnitList s_Units; static std::map > s_Races; };