The Battle for Wesnoth  1.19.7+dev
Classes | Namespaces | Typedefs | Functions
attack_type.hpp File Reference
#include "map/location.hpp"
#include "tstring.hpp"
#include "config.hpp"
#include <string>
#include <vector>
#include <boost/iterator/indirect_iterator.hpp>
#include <boost/dynamic_bitset_fwd.hpp>
#include "units/ptr.hpp"
#include "units/unit_alignments.hpp"
Include dependency graph for attack_type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  attack_type
 
class  attack_type::recursion_guard
 Helper similar to std::unique_lock for detecting when calculations such as has_special have entered infinite recursion. More...
 
class  attack_type::specials_context_t
 

Namespaces

 wfl
 

Typedefs

using attack_list = std::vector< attack_ptr >
 
using attack_itors = boost::iterator_range< boost::indirect_iterator< attack_list::iterator > >
 
using const_attack_itors = boost::iterator_range< boost::indirect_iterator< attack_list::const_iterator > >
 

Functions

attack_itors make_attack_itors (attack_list &atks)
 
const_attack_itors make_attack_itors (const attack_list &atks)
 

Typedef Documentation

◆ attack_itors

using attack_itors = boost::iterator_range<boost::indirect_iterator<attack_list::iterator> >

Definition at line 449 of file attack_type.hpp.

◆ attack_list

using attack_list = std::vector<attack_ptr>

Definition at line 448 of file attack_type.hpp.

◆ const_attack_itors

using const_attack_itors = boost::iterator_range<boost::indirect_iterator<attack_list::const_iterator> >

Definition at line 450 of file attack_type.hpp.

Function Documentation

◆ make_attack_itors() [1/2]

attack_itors make_attack_itors ( attack_list atks)
inline

Definition at line 452 of file attack_type.hpp.

Referenced by unit::attacks(), and unit_type::attacks().

◆ make_attack_itors() [2/2]

const_attack_itors make_attack_itors ( const attack_list atks)
inline

Definition at line 456 of file attack_type.hpp.