#include <aspect.hpp>


Public Member Functions | |
| typesafe_aspect (readonly_context &context, const config &cfg, const std::string &id) | |
| virtual | ~typesafe_aspect () |
| virtual const T & | get () const |
| virtual const variant & | get_variant () const |
| virtual boost::shared_ptr < variant > | get_variant_ptr () const |
| virtual void | recalculate () const =0 |
| virtual boost::shared_ptr< T > | get_ptr () const |
Protected Attributes | |
| boost::shared_ptr< T > | value_ |
| boost::shared_ptr< variant > | value_variant_ |
| boost::shared_ptr< lua_object < T > > | value_lua_ |
Definition at line 117 of file aspect.hpp.
| ai::typesafe_aspect< T >::typesafe_aspect | ( | readonly_context & | context, | |
| const config & | cfg, | |||
| const std::string & | id | |||
| ) | [inline] |
Definition at line 119 of file aspect.hpp.
| virtual ai::typesafe_aspect< T >::~typesafe_aspect | ( | ) | [inline, virtual] |
Definition at line 127 of file aspect.hpp.
| virtual const T& ai::typesafe_aspect< T >::get | ( | ) | const [inline, virtual] |
Definition at line 132 of file aspect.hpp.
| virtual boost::shared_ptr<T> ai::typesafe_aspect< T >::get_ptr | ( | ) | const [inline, virtual] |
Definition at line 167 of file aspect.hpp.
Referenced by ai::typesafe_aspect< attacks_vector >::get().

| virtual const variant& ai::typesafe_aspect< T >::get_variant | ( | ) | const [inline, virtual] |
Implements ai::aspect.
Definition at line 138 of file aspect.hpp.
Referenced by ai::typesafe_aspect< attacks_vector >::get_ptr().

| virtual boost::shared_ptr<variant> ai::typesafe_aspect< T >::get_variant_ptr | ( | ) | const [inline, virtual] |
Implements ai::aspect.
Definition at line 143 of file aspect.hpp.
Referenced by ai::typesafe_aspect< attacks_vector >::get_variant().

| virtual void ai::typesafe_aspect< T >::recalculate | ( | ) | const [pure virtual] |
Implements ai::aspect.
Implemented in ai::composite_aspect< T >, ai::standard_aspect< T >, ai::lua_aspect< T >, and ai::testing_ai_default::aspect_attacks.
Referenced by ai::typesafe_aspect< attacks_vector >::get_ptr(), and ai::typesafe_aspect< attacks_vector >::get_variant_ptr().

boost::shared_ptr<T> ai::typesafe_aspect< T >::value_ [mutable, protected] |
Definition at line 190 of file aspect.hpp.
Referenced by ai::typesafe_aspect< attacks_vector >::get_ptr(), ai::typesafe_aspect< attacks_vector >::get_variant_ptr(), ai::composite_aspect< T >::recalculate(), and ai::standard_aspect< T >::standard_aspect().
boost::shared_ptr< lua_object<T> > ai::typesafe_aspect< T >::value_lua_ [mutable, protected] |
Definition at line 192 of file aspect.hpp.
Referenced by ai::typesafe_aspect< attacks_vector >::get_ptr(), ai::typesafe_aspect< attacks_vector >::get_variant_ptr(), and ai::lua_aspect< T >::recalculate().
boost::shared_ptr<variant> ai::typesafe_aspect< T >::value_variant_ [mutable, protected] |
Definition at line 191 of file aspect.hpp.
Referenced by ai::typesafe_aspect< attacks_vector >::get_variant_ptr().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:21 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |