(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::utility::Consideration< T > Class Template Referenceabstract

The Consideration class - Representation of subset of game state. More...

#include <Consideration.hh>

Public Member Functions

 Consideration (int initRank)
 Consideration - Constructs consideration with provided rank. More...
 
 Consideration ()
 Consideration - Constructs consideration with default rank of 0.
 
 Consideration (const Consideration< T > &)=default
 
 Consideration (Consideration< T > &&)=default
 
Considerationoperator= (const Consideration< T > &)=default
 
Considerationoperator= (Consideration< T > &&)=default
 
virtual float Evaluate (const T &) const =0
 Evaluate - Reduces consideration to a floating-point number form. More...
 
const int GetRank () const
 GetRank. More...
 
virtual std::string GetDisplayName () const
 

Protected Attributes

int rank = 0
 

Detailed Description

template<typename T>
class grail::utility::Consideration< T >

The Consideration class - Representation of subset of game state.

Constructor & Destructor Documentation

template<typename T >
grail::utility::Consideration< T >::Consideration ( int  initRank)
inline

Consideration - Constructs consideration with provided rank.

Parameters
initRank

Member Function Documentation

template<typename T >
virtual float grail::utility::Consideration< T >::Evaluate ( const T &  ) const
pure virtual

Evaluate - Reduces consideration to a floating-point number form.

Returns
reduced, evaluated consideration
template<typename T >
const int grail::utility::Consideration< T >::GetRank ( ) const
inline

GetRank.

Returns
rank (const so it cannot be modified) - measure of importance of this considertion

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