Artificial Intelligence
Public Member Functions | Private Attributes

GamePipe::GraphEdge Class Reference

#include <GraphEdge.h>

List of all members.

Public Member Functions

 GraphEdge (GraphNode *start, GraphNode *end)
 GraphEdge constructor /summary> param name = 'start'>pointer to the start node in this edgeparam name = 'end'>pointer to the end node in this edge
 ~GraphEdge ()
void setStartNode (GraphNode *start)
GraphNodegetStartNode ()
void setEndNode (GraphNode *end)
GraphNodegetEndNode ()
void setCost (float newCost)
float getCost ()

Private Attributes

GraphNodestartNode
 startNode contains the pointer to the start node
GraphNodeendNode
 summary>contain cost value of this edge
float cost

Detailed Description

summary> contain Edge information in world /summary> author>Lin Tian tina.tian1987@gmail.com</author>


Constructor & Destructor Documentation

GamePipe::GraphEdge::GraphEdge ( GraphNode start,
GraphNode end 
)

GraphEdge constructor /summary> param name = 'start'>pointer to the start node in this edgeparam name = 'end'>pointer to the end node in this edge

GamePipe::GraphEdge::~GraphEdge ( )

summary> set start node in this edge /summary> param name = 'start'>pointer to the start node in this edge


Member Function Documentation

float GamePipe::GraphEdge::getCost ( ) [inline]
GraphNode* GamePipe::GraphEdge::getEndNode ( ) [inline]

summary> set the cost value of this edge /summary> param name = 'newCost'>cost value of this edge

GraphNode* GamePipe::GraphEdge::getStartNode ( ) [inline]

summary> set end node in this edge /summary> param name = 'end'>pointer to the end node in this edge

void GamePipe::GraphEdge::setCost ( float  newCost) [inline]

summary> get the cost to go through this edge /summary> returns>return cost

void GamePipe::GraphEdge::setEndNode ( GraphNode end) [inline]

summary> get the end node in this edge /summary> returns>return pointer to the end node

void GamePipe::GraphEdge::setStartNode ( GraphNode start) [inline]

summary> get the start node in this edge /summary> returns>return pointer to the start node


Member Data Documentation

float GamePipe::GraphEdge::cost [private]

summary>contain cost value of this edge

startNode contains the pointer to the start node

summary>endNode contains the pointer to the end node


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines