From: Michael Andreen Date: Mon, 8 Apr 2002 23:50:18 +0000 (+0000) Subject: forgot a few things... X-Git-Tag: HBS_0_1_0~18 X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=commitdiff_plain;h=ac13ca5453360c59eaa0b8ad4242ea0837825bc1 forgot a few things... --- diff --git a/bs/fleet.cpp b/bs/fleet.cpp index 97be5aa..f134f7b 100644 --- a/bs/fleet.cpp +++ b/bs/fleet.cpp @@ -218,7 +218,13 @@ void Fleet::addToThis(std::vector fleets, int tick = 0) ////////////////////////////////////////////////////////////////////////// // -void distributeLossesGains(std::vector fleets, int tick = 0) +void Fleet::distributeLossesGains(std::vector fleets, int tick = 0) +{ +} + +////////////////////////////////////////////////////////////////////////// +// +std::vector Fleet::calculateSide(std::vector fleets, int stays = 0, int tick = 0) { } diff --git a/bs/planet.cpp b/bs/planet.cpp index 9c421cc..a5541cb 100644 --- a/bs/planet.cpp +++ b/bs/planet.cpp @@ -86,7 +86,7 @@ void Planet::runBattle(std::vector friendly, std::vector hostile { //See who's in the battle at the current tick vector friends = calculateSide(friendly, 6, tick); - vector hostiles = calcualteSide(hostile, 3, tick); + vector hostiles = calculateSide(hostile, 3, tick); // No idea to calculate anything if noone is there.. ;) if (hostiles.size() == 0) @@ -98,16 +98,16 @@ void Planet::runBattle(std::vector friendly, std::vector hostile Fleet allHostiles; allHostiles.addToThis(hostiles); - calculateOneTick(&allFriends, &allHostiles); + calcOneTick(&allFriends, &allHostiles); allFriends.distributeLossesGains(friends, tick); - allHostile.distributeLossesGains(friends, tick); + allHostiles.distributeLossesGains(friends, tick); } } ////////////////////////////////////////////////////////////////////////// // -void calcOneTick(Planet* friendly, Fleet* Hostile) +void Planet::calcOneTick(Planet* friendly, Fleet* Hostile) { }