Namespaces | Functions

unit_helper.cpp File Reference

Support functions for dealing with units. More...

#include "resources.hpp"
#include "unit.hpp"
#include "unit_helper.hpp"
Include dependency graph for unit_helper.cpp:

Go to the source code of this file.

Namespaces

namespace  unit_helper

Functions

int unit_helper::number_of_possible_advances (const unit &unit)
 Determines the total number of available advancements (of any kind) for a given unit.
bool unit_helper::will_certainly_advance (const unit_map::iterator &u)
 Encapsulates the logic for deciding whether an iterator u points to a unit that can advance.

Detailed Description

Support functions for dealing with units.

Definition in file unit_helper.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:01 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs