The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Protected Attributes | List of all members
ai::known_aspect Class Referenceabstract

#include <aspect.hpp>

Inheritance diagram for ai::known_aspect:

Public Member Functions

 known_aspect (const std::string &name)
 
virtual ~known_aspect ()
 
virtual void set (aspect_ptr a)=0
 
virtual void add_facet (const config &cfg)=0
 
const std::string & get_name () const
 

Protected Attributes

const std::string name_
 

Detailed Description

Definition at line 183 of file aspect.hpp.

Constructor & Destructor Documentation

◆ known_aspect()

ai::known_aspect::known_aspect ( const std::string &  name)

Definition at line 134 of file aspect.cpp.

◆ ~known_aspect()

ai::known_aspect::~known_aspect ( )
virtual

Definition at line 144 of file aspect.cpp.

Member Function Documentation

◆ add_facet()

virtual void ai::known_aspect::add_facet ( const config cfg)
pure virtual

◆ get_name()

const std::string & ai::known_aspect::get_name ( ) const

Definition at line 139 of file aspect.cpp.

References name_.

Referenced by ai::typesafe_known_aspect< T >::add_facet(), and ai::typesafe_known_aspect< T >::set().

◆ set()

virtual void ai::known_aspect::set ( aspect_ptr  a)
pure virtual

Member Data Documentation

◆ name_

const std::string ai::known_aspect::name_
protected

Definition at line 196 of file aspect.hpp.

Referenced by get_name().


The documentation for this class was generated from the following files: