HOG2
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
Map2DEnvironment.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include "Map.h"
#include "SearchEnvironment.h"
#include "UnitSimulation.h"
#include "ReservationProvider.h"
#include "BitVector.h"
#include "GraphEnvironment.h"
#include "Graphics.h"
#include <cassert>
Include dependency graph for Map2DEnvironment.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xyLoc
 
struct  xyLocHash
 
class  BaseMapOccupancyInterface
 
struct  std::hash< xyLoc >
 
class  EuclideanDistance
 
class  MapEnvironment
 

Namespaces

 std
 

Typedefs

typedef UnitSimulation< xyLoc, tDirection, MapEnvironmentUnitMapSimulation
 

Enumerations

enum  drawOptions { kNoOptions = 0x0, kEfficientCells = 0x1, kTerrainBorderLines = 0x2, kCellBorderLines = 0x4 }
 
enum  tDirection {
  kN =0x8, kS =0x4, kE =0x2, kW =0x1,
  kNW =kN|kW, kNE =kN|kE, kSE =kS|kE, kSW =kS|kW,
  kStay =0, kTeleport =kSW|kNE, kAll = kSW|kNE
}
 

Functions

static std::ostream & operator<< (std::ostream &out, const xyLoc &loc)
 
static bool operator== (const xyLoc &l1, const xyLoc &l2)
 
static bool operator!= (const xyLoc &l1, const xyLoc &l2)
 

Variables

const int numPrimitiveActions = 8
 
const int numActions = 10
 
const tDirection possibleDir [numActions] = { kN, kNE, kE, kSE, kS, kSW, kW, kNW, kStay, kTeleport }
 
const int kStayIndex = 8
 

Typedef Documentation

◆ UnitMapSimulation

Definition at line 244 of file Map2DEnvironment.h.

Enumeration Type Documentation

◆ drawOptions

Enumerator
kNoOptions 
kEfficientCells 
kTerrainBorderLines 
kCellBorderLines 

Definition at line 30 of file Map2DEnvironment.h.

◆ tDirection

enum tDirection
Enumerator
kN 
kS 
kE 
kW 
kNW 
kNE 
kSE 
kSW 
kStay 
kTeleport 
kAll 

Definition at line 77 of file Map2DEnvironment.h.

Function Documentation

◆ operator!=()

static bool operator!= ( const xyLoc l1,
const xyLoc l2 
)
static

Definition at line 72 of file Map2DEnvironment.h.

References xyLoc::x, and xyLoc::y.

◆ operator<<()

static std::ostream& operator<< ( std::ostream &  out,
const xyLoc loc 
)
static

Definition at line 62 of file Map2DEnvironment.h.

References loc::x, and loc::y.

◆ operator==()

static bool operator== ( const xyLoc l1,
const xyLoc l2 
)
static

Definition at line 68 of file Map2DEnvironment.h.

References xyLoc::x, and xyLoc::y.

Variable Documentation

◆ kStayIndex

const int kStayIndex = 8

◆ numActions

const int numActions = 10

Definition at line 103 of file Map2DEnvironment.h.

◆ numPrimitiveActions

const int numPrimitiveActions = 8

Definition at line 102 of file Map2DEnvironment.h.

◆ possibleDir

const tDirection possibleDir[numActions] = { kN, kNE, kE, kSE, kS, kSW, kW, kNW, kStay, kTeleport }