(C++)  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
IVectorizer.hh
1 #ifndef GRAIL_IVECTORIZER_H
2 #define GRAIL_IVECTORIZER_H
3 
4 #include <vector>
5 
6 namespace grail
7 {
8 
9  namespace simulation
10  {
11  class ISimulatedGameUnit;
12 
16  struct IVectorizer
17  {
24  virtual bool IsLearnableSituation(const ISimulatedGameUnit& unit) const = 0;
25 
29  virtual std::vector<float> Vectorize() const = 0;
30  virtual ~IVectorizer() {};
31  };
32  }
33 }
34 
35 #endif //GRAIL_IVECTORIZER_H
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:27
Classes implementing this interface provide training data in the offline learning process.
Definition: IVectorizer.hh:17
virtual bool IsLearnableSituation(const ISimulatedGameUnit &unit) const =0
Look at the state of your units and decide whether the current unit should learn in this situation....
virtual std::vector< float > Vectorize() const =0
Returns the current values for all consideration (conditions) that will be used in a decision tree la...