HOG2
|
#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"
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 |
enum moveDir |
Enumerator | |
---|---|
kWest | |
kEast | |
kNorth | |
kSouth | |
kNorthEast | |
kNorthWest | |
kSouthEast | |
kSouthWest |
Definition at line 32 of file Map3DGrid.h.
|
inline |
Definition at line 26 of file Map3DGrid.h.
References gSectorSize.
Referenced by GridData::AddBlocked(), GridData::AddMove(), GridData::ClearMoves(), Map3DGrid::FindNearState(), GridData::GetBlocked(), GridData::GetHeightOffset(), GridData::GetMoveLocality(), GridData::GetMoves(), GridData::IsPointPassable(), Map3DGrid::OpenGLDraw(), RegionData::RedoCenterLocation(), GridData::ReMove(), GridData::RemovePoint(), GridData::SetHeightOffset(), and GridData::SubtractBlocked().
Definition at line 183 of file Map3DGrid.h.
References state3d::GetOffset(), state3d::GetRegion(), and state3d::GetSector().
|
inline |
Definition at line 29 of file Map3DGrid.h.
References gSectorSize.
Referenced by Map3DGrid::GetXYFromState(), Map3DGrid::OpenGLDraw(), and RegionData::RedoCenterLocation().
int gSectorSize |
Definition at line 12 of file Map3DGrid.cpp.
Referenced by Map3DGrid::AddGridEdge(), GridData::AddMove(), RegionData::AddPoint(), SectorData::AddPoint(), GridData::BFS(), Map3DGrid::FindNearState(), Map3DGrid::GetGridBytesUsed(), GridData::GetHeightOffset(), Map3DGrid::GetSector(), Map3DGrid::GetSuccessors(), Map3DGrid::GetXYFromState(), GridData::GridData(), indexFromXY(), GridData::IsPointPassable(), GridData::LabelAreas(), RegionData::LowerBase(), Map3DGrid::Map3DGrid(), Map3DGrid::OpenGLDraw(), RegionData::RedoCenterLocation(), GridData::ReMove(), Map3DGrid::RemoveGridEdge(), SectorData::RemovePoint(), Map3DGrid::RemovePoint(), and xyFromIndex().