Go to the documentation of this file.
9 #ifndef __hog2_glut__Map2DConstrainedEnvironment__
10 #define __hog2_glut__Map2DConstrainedEnvironment__
30 out <<
"(" <<
loc.l.
x <<
", " <<
loc.l.
y <<
": " <<
loc.t <<
")";
47 virtual void GetActions(
const xytLoc &nodeID, std::vector<tDirection> &actions)
const;
virtual void ApplyAction(xytLoc &s, tDirection a) const
virtual uint64_t GetStateHash(const xytLoc &node) const
virtual double GCost(const xytLoc &node, const tDirection &act) const
virtual void UndoAction(xytLoc &s, tDirection a) const
virtual void GLDrawLine(const xytLoc &x, const xytLoc &y) const
bool ViolatesConstraint(const xyLoc &from, const xyLoc &to, int time) const
void AddConstraint(constraint c)
virtual bool GoalTest(const xytLoc &node, const xytLoc &goal) const
virtual double HCost(const xytLoc &node1, const xytLoc &node2) const
Heuristic value between two arbitrary nodes.
virtual bool InvertAction(tDirection &a) const
static std::ostream & operator<<(std::ostream &out, const xytLoc &loc)
virtual tDirection GetAction(const xytLoc &s1, const xytLoc &s2) const
bool operator==(const xytLoc &l1, const xytLoc &l2)
virtual double GCost(const xytLoc &node1, const xytLoc &node2) const
virtual uint64_t GetActionHash(tDirection act) const
std::vector< constraint > constraints
xytLoc(xyLoc loc, int time)
virtual void GetActions(const xytLoc &nodeID, std::vector< tDirection > &actions) const
virtual void OpenGLDraw() const
Map2DConstrainedEnvironment(Map *m)
Nodes to be stored within a Graph.
A tile-based representation of the world.
virtual void GetSuccessors(const xytLoc &nodeID, std::vector< xytLoc > &neighbors) const