HOG2
|
#include <stdio.h>
#include <cstdint>
#include <math.h>
#include "SearchEnvironment.h"
#include "Map2DEnvironment.h"
#include "Map.h"
Go to the source code of this file.
Classes | |
struct | RacetrackMove |
struct | RacetrackState |
class | Racetrack |
Functions | |
std::ostream & | operator<< (std::ostream &out, const RacetrackState &s) |
bool | operator== (const RacetrackState &l1, const RacetrackState &l2) |
bool | operator!= (const RacetrackState &l1, const RacetrackState &l2) |
std::ostream & | operator<< (std::ostream &out, const RacetrackMove &m) |
bool | operator== (const RacetrackMove &m1, const RacetrackMove &m2) |
Variables | |
const int | maxVelocity = 4 |
const tTerrain | kStartTerrain = kSwamp |
const tTerrain | kEndTerrain = kGrass |
const tTerrain | kObstacle = kTrees |
bool operator!= | ( | const RacetrackState & | l1, |
const RacetrackState & | l2 | ||
) |
Definition at line 25 of file Racetrack.cpp.
std::ostream& operator<< | ( | std::ostream & | out, |
const RacetrackMove & | m | ||
) |
Definition at line 29 of file Racetrack.cpp.
References RacetrackMove::xDelta, and RacetrackMove::yDelta.
std::ostream& operator<< | ( | std::ostream & | out, |
const RacetrackState & | s | ||
) |
Definition at line 11 of file Racetrack.cpp.
References RacetrackState::xLoc, RacetrackState::xVelocity, RacetrackState::yLoc, and RacetrackState::yVelocity.
bool operator== | ( | const RacetrackMove & | m1, |
const RacetrackMove & | m2 | ||
) |
Definition at line 35 of file Racetrack.cpp.
References RacetrackMove::xDelta, and RacetrackMove::yDelta.
bool operator== | ( | const RacetrackState & | l1, |
const RacetrackState & | l2 | ||
) |
Definition at line 17 of file Racetrack.cpp.
References RacetrackState::xLoc, RacetrackState::xVelocity, RacetrackState::yLoc, and RacetrackState::yVelocity.
Definition at line 44 of file Racetrack.h.
Referenced by Racetrack::GoalTest(), Racetrack::Legal(), and Racetrack::UpdateMap().
Definition at line 45 of file Racetrack.h.
Referenced by Racetrack::Legal().
Definition at line 43 of file Racetrack.h.
Referenced by Racetrack::Reset().
const int maxVelocity = 4 |
Definition at line 34 of file Racetrack.h.
Referenced by Racetrack::GetStateHash(), and Racetrack::Legal().