Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
GridWorld Class Reference
Detailed DescriptionDefinition at line 10 of file GridWorld.h.
Constructor & Destructor Documentation
default constructor, does nothing Definition at line 49 of file GridWorld.h.
constructs empty world of the specified size Definition at line 52 of file GridWorld.h. Member Function Documentation
Generates a vector of successor states, paired with the cost to get to that state from st. Note that this implementation returns a reference to a static instance, which is not thread safe but slightly faster Definition at line 28 of file GridWorld.cc. The heuristic function accepts the current state, and goal state, and should return an admissable (aka optimistic) estimate of the remaining cost. Definition at line 12 of file GridWorld.cc.
map cell accessor Definition at line 65 of file GridWorld.h.
map cell accessor Definition at line 64 of file GridWorld.h.
map cell accessor Definition at line 71 of file GridWorld.h.
map cell accessor Definition at line 70 of file GridWorld.h.
map row accessor Definition at line 68 of file GridWorld.h.
map row accessor Definition at line 67 of file GridWorld.h.
allows validation on queue-pop instead of before queue-push Definition at line 55 of file GridWorld.h. Friends And Related Function Documentation
writes map to ostream Definition at line 68 of file GridWorld.cc.
can read from istream (until end of stream), spaces are empty, non-spaces are blocked Definition at line 60 of file GridWorld.cc. Member Data Documentation
cost for diagonal moves: <=0 means disable diagonals Definition at line 13 of file GridWorld.h. Referenced by expand(), and heuristic().
cost for horizontal moves Definition at line 11 of file GridWorld.h. Referenced by expand(), and heuristic().
cost for vertical moves Definition at line 12 of file GridWorld.h. Referenced by expand(), and heuristic().
storage for map, spaces are empty, non-spaces are blocked Definition at line 21 of file GridWorld.h. Referenced by expand(), operator()(), operator<<(), operator>>(), and operator[](). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:09 2016 by Doxygen 1.6.3 |