HOG2
Classes | Functions | Variables
Racetrack.h File Reference
#include <stdio.h>
#include <cstdint>
#include <math.h>
#include "SearchEnvironment.h"
#include "Map2DEnvironment.h"
#include "Map.h"
Include dependency graph for Racetrack.h:
This graph shows which files directly or indirectly include this file:

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
 

Function Documentation

◆ operator!=()

bool operator!= ( const RacetrackState l1,
const RacetrackState l2 
)

Definition at line 25 of file Racetrack.cpp.

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  out,
const RacetrackMove m 
)

Definition at line 29 of file Racetrack.cpp.

References RacetrackMove::xDelta, and RacetrackMove::yDelta.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  out,
const RacetrackState s 
)

◆ operator==() [1/2]

bool operator== ( const RacetrackMove m1,
const RacetrackMove m2 
)

Definition at line 35 of file Racetrack.cpp.

References RacetrackMove::xDelta, and RacetrackMove::yDelta.

◆ operator==() [2/2]

bool operator== ( const RacetrackState l1,
const RacetrackState l2 
)

Variable Documentation

◆ kEndTerrain

const tTerrain kEndTerrain = kGrass

Definition at line 44 of file Racetrack.h.

Referenced by Racetrack::GoalTest(), Racetrack::Legal(), and Racetrack::UpdateMap().

◆ kObstacle

const tTerrain kObstacle = kTrees

Definition at line 45 of file Racetrack.h.

Referenced by Racetrack::Legal().

◆ kStartTerrain

const tTerrain kStartTerrain = kSwamp

Definition at line 43 of file Racetrack.h.

Referenced by Racetrack::Reset().

◆ maxVelocity

const int maxVelocity = 4

Definition at line 34 of file Racetrack.h.

Referenced by Racetrack::GetStateHash(), and Racetrack::Legal().