23 #ifndef _SGBASEACTION_HPP
24 #define _SGBASEACTION_HPP
26 #include "sgcommon.hpp"
27 #include "sgtuple.hpp"
28 #include "sgnamespace.hpp"
105 minIC(_numPlayers,-numeric_limits<double>::max()),
155 const vector< vector<int> > & newTuples)
158 assert(newPoints.size() == newTuples.size());
171 bool isCorner(
const int p,
const int k)
const;
174 template<
class Archive>
188 friend class boost::serialization::access;
bool isCorner(const int p, const int k) const
Returns whether or not the minimum IC payoff is feasible.
Definition: sgbaseaction.cpp:24
int numPlayers
Definition: sgbaseaction.hpp:41
int getState() const
Returns the state.
Definition: sgbaseaction.hpp:128
SGBaseAction(int _numPlayers, int _state, int _action)
Constructor.
Definition: sgbaseaction.hpp:99
void setPointsAndTuples(const vector< SGTuple > &newPoints, const vector< vector< int > > &newTuples)
Sets the points and tuples arrays.
Definition: sgbaseaction.hpp:154
bool isNull
Definition: sgbaseaction.hpp:73
bool hasCorner() const
Returns whether or not the action has a corner.
Definition: sgbaseaction.hpp:130
bool corner
Definition: sgbaseaction.hpp:76
void serialize(Archive &ar, const unsigned int version)
Serializes the action using the boost::serialization library.
Definition: sgbaseaction.hpp:175
int state
Definition: sgbaseaction.hpp:42
void setMinICPayoffs(const SGPoint &newMinIC)
Sets the minimum IC continuation values.
Definition: sgbaseaction.hpp:137
const vector< SGTuple > & getBndryDirs() const
Get method for bndry dirs.
Definition: sgbaseaction.hpp:124
SGBaseAction()
Constructor.
Definition: sgbaseaction.hpp:83
vector< SGTuple > points
Definition: sgbaseaction.hpp:50
SGBaseAction(int _state, int _action)
Constructor.
Definition: sgbaseaction.hpp:92
void setCorner(bool tf)
Sets the corner indicator.
Definition: sgbaseaction.hpp:165
void setPoints(const vector< SGTuple > &newPoints)
Sets the points array
Definition: sgbaseaction.hpp:148
A vector in .
Definition: sgpoint.hpp:35
const vector< SGTuple > & getBindingContinuations() const
Returns the array of binding continuation values.
Definition: sgbaseaction.hpp:134
vector< SGTuple > bndryDirs
Definition: sgbaseaction.hpp:62
~SGBaseAction()
Destructor.
Definition: sgbaseaction.hpp:115
SGPoint minIC
Definition: sgbaseaction.hpp:44
vector< vector< int > > tuples
Definition: sgbaseaction.hpp:66
void setTuples(const vector< vector< int > > &newTuples)
Sets the tuples array.
Definition: sgbaseaction.hpp:142
const SGPoint & getMinICPayoffs() const
Returns the minimum IC continuation values.
Definition: sgbaseaction.hpp:132
int getAction() const
Returns the action.
Definition: sgbaseaction.hpp:120
const vector< vector< int > > & getTuples() const
Returns the tuples array.
Definition: sgbaseaction.hpp:126
Describes an action in the game.
Definition: sgbaseaction.hpp:39
Definition: sgtuple.hpp:52
int action
Definition: sgbaseaction.hpp:43
bool getIsNull() const
Returns true if the action is null.
Definition: sgbaseaction.hpp:118
const vector< SGTuple > & getPoints() const
Returns the points array.
Definition: sgbaseaction.hpp:122