HOG2
Public Member Functions | Private Attributes | List of all members
OldSearchCode::MapSearchEnvironment Class Reference

#include <OldSearchEnvironment.h>

Inheritance diagram for OldSearchCode::MapSearchEnvironment:
Inheritance graph
[legend]
Collaboration diagram for OldSearchCode::MapSearchEnvironment:
Collaboration graph
[legend]

Public Member Functions

 MapSearchEnvironment (Map *_map)
 
 ~MapSearchEnvironment ()
 
void getNeighbors (uint32_t nodeID, std::vector< uint32_t > &neighbors)
 
double heuristic (uint32_t node1, uint32_t node2)
 
double gcost (uint32_t node1, uint32_t node2)
 
- Public Member Functions inherited from OldSearchCode::SearchEnvironment
virtual ~SearchEnvironment ()
 
virtual bool goalTest (uint32_t node, uint32_t goal)
 

Private Attributes

Mapmap
 

Detailed Description

Definition at line 28 of file OldSearchEnvironment.h.

Constructor & Destructor Documentation

◆ MapSearchEnvironment()

OldSearchCode::MapSearchEnvironment::MapSearchEnvironment ( Map _map)
inline

Definition at line 31 of file OldSearchEnvironment.h.

◆ ~MapSearchEnvironment()

OldSearchCode::MapSearchEnvironment::~MapSearchEnvironment ( )
inline

Definition at line 32 of file OldSearchEnvironment.h.

Member Function Documentation

◆ gcost()

double OldSearchCode::MapSearchEnvironment::gcost ( uint32_t  node1,
uint32_t  node2 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 47 of file OldSearchEnvironment.cpp.

References heuristic().

◆ getNeighbors()

void OldSearchCode::MapSearchEnvironment::getNeighbors ( uint32_t  nodeID,
std::vector< uint32_t > &  neighbors 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 14 of file OldSearchEnvironment.cpp.

References Map::GetTerrainType(), kGround, and map.

◆ heuristic()

double OldSearchCode::MapSearchEnvironment::heuristic ( uint32_t  node1,
uint32_t  node2 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 52 of file OldSearchEnvironment.cpp.

References ROOT_TWO.

Referenced by gcost().

Member Data Documentation

◆ map

Map* OldSearchCode::MapSearchEnvironment::map
private

Definition at line 37 of file OldSearchEnvironment.h.

Referenced by getNeighbors().


The documentation for this class was generated from the following files: