RTS2D
|
00001 #include "Node.h" 00002 00003 #ifndef EDGE_H 00004 #define EDGE_H 00005 00009 class Edge { 00010 public: 00011 Edge(Node* node, float cost, Edge *next); 00012 virtual ~Edge(); 00013 Node* getNode(); 00014 void setNode(Node* node); 00015 float getCost(); 00016 void setCost(float cost); 00017 Edge* getNext(); 00018 void setNext(Edge* next); 00019 void show(); 00020 00021 protected: 00022 private: 00023 Node* node_; 00024 double cost_; 00025 Edge* next_; 00026 }; 00027 00028 #endif // EDGE_H