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

Go to the source code of this file.

Classes

class  GridData
 
class  EdgeData
 
class  RegionData
 
class  SectorData
 
class  state3d
 
class  action3d
 
class  Map3DGrid
 

Enumerations

enum  moveDir {
  kWest = 0x1, kEast = 0x2, kNorth = 0x4, kSouth = 0x8,
  kNorthEast = 0x10, kNorthWest = 0x20, kSouthEast = 0x40, kSouthWest = 0x80
}
 

Functions

int indexFromXY (int x, int y)
 
void xyFromIndex (int index, int &x, int &y)
 
static bool operator== (const state3d &l1, const state3d &l2)
 

Variables

int gSectorSize
 

Enumeration Type Documentation

◆ moveDir

enum moveDir
Enumerator
kWest 
kEast 
kNorth 
kSouth 
kNorthEast 
kNorthWest 
kSouthEast 
kSouthWest 

Definition at line 32 of file Map3DGrid.h.

Function Documentation

◆ indexFromXY()

int indexFromXY ( int  x,
int  y 
)
inline

◆ operator==()

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

Definition at line 183 of file Map3DGrid.h.

References state3d::GetOffset(), state3d::GetRegion(), and state3d::GetSector().

◆ xyFromIndex()

void xyFromIndex ( int  index,
int &  x,
int &  y 
)
inline

Variable Documentation

◆ gSectorSize

int gSectorSize