X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Ffleet.cpp;h=5f6b0155f01444431167c66f60abe72edbcb4c45;hp=f134f7bb1fa51b7c2d2f8e29d5d5dd6a16bafc7d;hb=a2ce63f561d091d9c3af49987d74849f9450c16b;hpb=ac13ca5453360c59eaa0b8ad4242ea0837825bc1 diff --git a/bs/fleet.cpp b/bs/fleet.cpp index f134f7b..5f6b015 100644 --- a/bs/fleet.cpp +++ b/bs/fleet.cpp @@ -228,3 +228,46 @@ std::vector Fleet::calculateSide(std::vector fleets, int stays = { } +////////////////////////////////////////////////////////////////////////// +// +int Fleet::freeFleet(std:: string unittype, int tick = 0) +{ + if (m_Fleet[unittype].size() == 0) + return 0; + if (m_BlockedFleet[unittype].size() < tick) + return m_Fleet[unittype][tick]; + + return m_Fleet[unittype][tick] - m_BlockedFleet[unittype][tick]; +} + + +////////////////////////////////////////////////////////////////////////// +// +void Fleet::takeShoot(std::string unittype, int number, std::map& hitunits) +{ +} + +////////////////////////////////////////////////////////////////////////// +// +void Fleet::takeEMP(std::string unittype, int number) +{ +} + +////////////////////////////////////////////////////////////////////////// +// +void Fleet::killFleet(std::string unittype, int number, int tick = 0) +{ +} + +////////////////////////////////////////////////////////////////////////// +// +void setResource(std::string type, int number, int tick = 0) +{ +} + +////////////////////////////////////////////////////////////////////////// +// +int resource(std::string type, int tick = 0) +{ +} +