Classes | Namespaces | Functions

ai/composite/property_handler.hpp File Reference

Composite AI component. More...

#include <boost/function.hpp>
#include "config.hpp"
#include "foreach.hpp"
#include "ai/composite/component.hpp"
Include dependency graph for property_handler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ai::path_element_matches< T >
class  ai::base_property_handler
class  ai::vector_property_handler< T >
class  ai::aspect_property_handler< T >

Namespaces

namespace  ai
 

A small explanation about what's going on here: Each action has access to two game_info objects First is 'info' - real information Second is 'subjective info' - AIs perception of what's going on So, when we check_before action, we use 'subjective info' and don't touch real 'info' at all.


Functions

template<typename X >
static void ai::register_vector_property (std::map< std::string, property_handler_ptr > &property_handlers, const std::string &property, std::vector< boost::shared_ptr< X > > &values, boost::function2< void, std::vector< boost::shared_ptr< X > > &, const config & > construction_factory)
template<typename X >
static void ai::register_aspect_property (std::map< std::string, property_handler_ptr > &property_handlers, const std::string &property, std::map< std::string, boost::shared_ptr< X > > &aspects)

Detailed Description

Composite AI component.

Definition in file property_handler.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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