|
Grail (C++)
1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
3 #ifndef GRAIL_ROULETTE_UTILITY_REASONER_H
4 #define GRAIL_ROULETTE_UTILITY_REASONER_H
6 #include "UtilityReasoner.hh"
7 #include "../ConfigHelpers/RandomNumberGenerator.h"
8 #include "../Selectors/RouletteSelector.hh"
26 std::shared_ptr<RandomNumberGenerator> randomNumberGenerator,
28 float persistence = 0.1f);
36 std::shared_ptr<RandomNumberGenerator> randomNumberGenerator,
37 float persistence = 0.1f);
46 float persistence = 0.1f);
53 float persistence = 0.1f);
70 std::function<
bool(
const std::size_t&)> validator)
override;
73 std::shared_ptr<RandomNumberGenerator> randomNumberGenerator;
79 #endif //GRAIL_ROULETTE_UTILITY_REASONER_H
RouletteUtilityReasoner(std::vector< BlueprintOption< Behavior, EntityBlackboardPair, grail::AIEntity >> blueprintOptions, std::shared_ptr< RandomNumberGenerator > randomNumberGenerator, roulette_selector::RouletteOptions rouletteOptions, float persistence=0.1f)
UtilityReasoner - Constructor.
Definition: RouletteUtilityReasoner.cpp:12
RouletteSelectionOptions - Struct determining options for roulette selection.
Definition: RouletteOptions.hh:18
Definition: BlueprintOption.hh:14
The SelectionResult struct - Structure containing results of operations done by Selector.
Definition: SelectionResult.hh:19
The UtilityReasoner class - Class responsible for assigning behaviors using Utility System algorithm....
Definition: UtilityReasoner.hh:24
Definition: RouletteUtilityReasoner.hh:16
void GetBestOption(const std::vector< SelectionOption< EntityBlackboardPair >> &options, SelectionResult &result, std::function< bool(const std::size_t &)> validator) override
GetBestOption - Selects most suitable option. Provides different context for each evaluated objects.
Definition: RouletteUtilityReasoner.cpp:44
void SetRouletteOptions(roulette_selector::RouletteOptions rouletteOptions)
SetRouletteOptions - Sets new roulette options.