HOG2
Public Member Functions | Private Attributes | List of all members
GraphStraightLineHeuristic Class Reference

#include <AbstractWeightedSearchAlgorithm.h>

Inheritance diagram for GraphStraightLineHeuristic:
Inheritance graph
[legend]
Collaboration diagram for GraphStraightLineHeuristic:
Collaboration graph
[legend]

Public Member Functions

 GraphStraightLineHeuristic (Map *map, Graph *graph, Graph *mg)
 
GraphGetGraph ()
 
double HCost (const graphState &state1, const graphState &state2) const
 
- Public Member Functions inherited from GraphHeuristic
virtual ~GraphHeuristic ()
 
virtual void ChooseStartGoal (graphState &, graphState &)
 
virtual void OpenGLDraw () const
 

Private Attributes

Mapm
 
Graphg
 
Graphmapgraph
 

Detailed Description

Definition at line 254 of file AbstractWeightedSearchAlgorithm.h.

Constructor & Destructor Documentation

◆ GraphStraightLineHeuristic()

GraphStraightLineHeuristic::GraphStraightLineHeuristic ( Map map,
Graph graph,
Graph mg 
)
inline

Definition at line 256 of file AbstractWeightedSearchAlgorithm.h.

Member Function Documentation

◆ GetGraph()

Graph* GraphStraightLineHeuristic::GetGraph ( )
inlinevirtual

Implements GraphHeuristic.

Definition at line 258 of file AbstractWeightedSearchAlgorithm.h.

References g.

◆ HCost()

double GraphStraightLineHeuristic::HCost ( const graphState state1,
const graphState state2 
) const
inlinevirtual

Member Data Documentation

◆ g

Graph* GraphStraightLineHeuristic::g
private

Definition at line 288 of file AbstractWeightedSearchAlgorithm.h.

Referenced by GetGraph(), and HCost().

◆ m

Map* GraphStraightLineHeuristic::m
private

Definition at line 287 of file AbstractWeightedSearchAlgorithm.h.

◆ mapgraph

Graph* GraphStraightLineHeuristic::mapgraph
private

Definition at line 289 of file AbstractWeightedSearchAlgorithm.h.

Referenced by HCost().


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