22 #ifndef _SGITERATION_MAXMINMAX_HPP
23 #define _SGITERATION_MAXMINMAX_HPP
27 #include <boost/archive/text_iarchive.hpp>
28 #include <boost/archive/text_oarchive.hpp>
29 #include <boost/serialization/utility.hpp>
63 actions.resize(_actions.size());
64 for (
int state = 0; state < _actions.size(); state++)
66 actions[state].reserve(_actions[state].size());
67 for (
auto ait = _actions[state].begin();
68 ait != _actions[state].end();
77 steps.push_back(step);
88 template<
class Archive>
91 void serialize(Archive &ar,
const unsigned int version)
vector< vector< SGBaseAction > > actions
Definition: sgiteration_maxminmax.hpp:40
friend class boost::serialization::access
Serializes the SGIteration_MaxMinMax object using boost.
Definition: sgiteration_maxminmax.hpp:87
list< SGStep > steps
Definition: sgiteration_maxminmax.hpp:46
A single step of the max-min-max algorithm.
Definition: sgstep.hpp:36
SGIteration_MaxMinMax(const vector< list< SGAction_MaxMinMax > > &_actions, const SGTuple &_threatTuple)
Definition: sgiteration_maxminmax.hpp:58
const list< SGStep > & getSteps() const
Get method for the steps.
Definition: sgiteration_maxminmax.hpp:80
SGIteration_MaxMinMax()
Default constructor.
Definition: sgiteration_maxminmax.hpp:50
void serialize(Archive &ar, const unsigned int version)
Serialize the iteration using Boost.
Definition: sgiteration_maxminmax.hpp:91
const vector< vector< SGBaseAction > > & getActions() const
Get method for the actions available at the current iteration.
Definition: sgiteration_maxminmax.hpp:82
SGTuple threatTuple
Definition: sgiteration_maxminmax.hpp:44
Describes an action in the game.
Definition: sgbaseaction.hpp:39
Definition: sgtuple.hpp:52
Stores data on the behavior of SGSolver_MaxMinMax.
Definition: sgiteration_maxminmax.hpp:38
void push_back(const SGStep &step)
Add an SGStep.
Definition: sgiteration_maxminmax.hpp:75
const SGTuple & getThreatTuple() const
Get method for the current threat tuple.
Definition: sgiteration_maxminmax.hpp:84
- src
- hpp
- sgiteration_maxminmax.hpp