RTS2D
include/graph/Node.h
00001 #ifndef NODE_H
00002 #include <cstdio>
00003 #define NODE_H
00004 
00008 class Node {
00009 public:
00010     Node(int x, int y);
00011     virtual ~Node();
00012     int getX();
00013     void setX(int x);
00014     int getY();
00015     void setY(int y);
00016     int getType();
00017     void setType(int type);
00018     int getTileType();
00019     void setTileType(int tileType);
00020     int getZone();
00021     void setZone(int zone);
00022     int getTeam();
00023     void setTeam(int team);
00024     float getCost();
00025     void setCost(float cost);
00026     float getDist();
00027     void setDist(float dist);
00028     float getEstimate();
00029     void setEstimate(float estimate);
00030     bool isWalkable();
00031     void setWalkable(bool walkable);
00032     bool isOnPath();
00033     void setOnPath(bool onPath);
00034     int getChoke();
00035     void setChoke(int choke);
00036     Node* getParent();
00037     void setParent(Node* parent);
00038 
00039 protected:
00040 private:
00041     int x_;
00042     int y_;
00043     int type_;
00044     int tileType_;
00045     int zone_;
00046     int team_;
00047     double cost_;
00048     double dist_;
00049     double estimate_;
00050     bool walkable_;
00051     bool onPath_; // Apenas pra debug
00052     int choke_;
00053     Node* parent_;
00054 };
00055 
00056 #endif // NODE_H
00057 
 Todos Classes Funções