+
+ /**Returns the number of free ships, that is: ships that aren't dead and not
+ * blocked.
+ * \param unittype The shipname, as a std string
+ * \param tick The tick you want to look at, tick 0 (before battle) is default
+ * \return returns the number of units that params specifies.
+ */
+ int freeFleet(std:: string unittype, int tick = 0);
+
+ /** This function is used to see how many ships of a specific type got
+ * blocked at a specific tick.
+ * \param unittype the name of the unittype
+ * \param tick what tick you want to look at
+ * \return the number of ships that got blocked at the specified tick.
+ */
+ int blockedFleet(std::string unittype, int tick = 0);
+
+ void setBlockedFleet(std::string unittype, int number, int tick = 0);
+
+ /** This function takes the vector with fleets and adds all their units of the
+ * specific tick to the current fleet's first tick. Main usage is for battle
+ * calculations.
+ * \param fleets a vector with fleet pointers
+ * \param tick an int to specify what tick to use. tick 0 (before battle)
+ * is default
+ * \todo add another tick parameter to specify what tick to use in the
+ * current fleet.
+ */
+ void addToThis(std::vector<Fleet*> fleets, int tick = 0);
+
+ /** This function takes a vector with fleets and distribute all ship losses
+ * between tick 0 and 1 in the current fleet and adds that to the specified
+ * tick in each fleet.
+ * \param fleets a vector with fleet pointers that holds the fleets that's
+ * going to share the losses.
+ * \param tick the tick to add the losses to for the fleets in the vector.
+ * \todo add another tick parameter to specify what tick to use in the
+ * current fleet.
+ */
+ void distributeLossesGains(std::vector<Fleet*> fleets, int tick = 0);
+
+ /** This functions takes the captured roids between tick 0 and 1 in the
+ * current fleet and divides them between the fleets given as param.
+ * \param fleets a vector with Fleet pointers, points to the fleets that
+ * should get parts of the roids.
+ * \param tick the tick to use in the fleets given as argument, when the
+ * roids are handed out.
+ * \todo add another tick parameter to specify what tick to use in the
+ * current fleet.
+ */
+ void distributeCappedRoids(std::vector<Fleet*> fleets, int tick = 0);
+
+ /** Checks through the vector with fleets to see who's in time for the
+ * specified tick and staying long enough so they're not too early.
+ * \param fleets a vector with Fleet pointers to use for the calculations
+ * \param stays the number of ticks the fleets stays, will be obsolee when
+ * I get the time.
+ * \param tick What the current tick is to use for the calculations
+ * \return returns a vector with the fleet that are in time for the battle
+ * and are staying long enough.
+ * \todo add the stays part as a integrated part of each fleet.
+ */
+ std::vector<Fleet*> calculateSide(std::vector<Fleet*> fleets, int stays = 0, int tick = 0);
+
+ /** Kill some ships of the specified type in the current fleet.
+ * \param unittype the name of the unit to kill
+ * \param number how many ships to kill
+ * \param tick what tick they where killed.
+ */
+ void killFleet(std::string unittype, int number, int tick = 0);
+
+ /**Block some ships of the specified type in the current fleet.
+ * \param unittype the name of the unit to block
+ * \param number how many ships to block
+ * \param tick what tick they where blocked.
+ */
+ void blockFleet(std::string unittype, int number, int tick = 0);
+
+ /** Set the resources of the specified type for the tick.
+ *
+ * \param type The name of the resource (in pa: metal,
+ * crystal and eonium (+ uninit for roids).
+ * \param number just simply the number of the specified resource.
+ * \param tick what tick to set
+ * \sa resource
+ */
+ void setResource(std::string type, int number, int tick = 0);
+
+ /** Adds a number ot the specified resource type.
+ * \param type The name of the resource (in pa: metal,
+ * crystal and eonium (+ uninit for roids).
+ * \param number just simply the number of the specified resource.
+ * \param tick what tick to set
+ * \sa resource
+ */
+ void addResource(std::string type, int number, int tick = 0);
+
+ /** Looks up the how much of a specific resource type the current fleet has.
+ *
+ * Resources is a kinda vague word, in general it's used as roid capping
+ * for hostile fleet and as salvage for friendly.
+ * \param type The name of the resource (in pa: metal,
+ * crystal and eonium (+ uninit for roids).
+ * \param tick what tick to set
+ * \returns simply returns the number of the specific resource this fleet
+ * has.
+ */
+ int resource(std::string type, int tick = 0)const;