#ifndef NODERECORDLIST_H #define NODERECORDLIST_H #include <QList> #include <QPoint> #include "pathfinding/noderecord.h" class NodeRecordList :public QList <NodeRecord> { public: NodeRecordList(); NodeRecord findNode (QPoint node); }; #endif // NODERECORDLIST_H
#include "noderecordlist.h" NodeRecordList::NodeRecordList() { } NodeRecord NodeRecordList::findNode(QPoint node){ NodeRecord record; for (int i=0; i < this->size(); i++){ //if (at(i).node() == node){} //Esto da error record.copy(at(i)); if (record.node() == node) { return record; } } return record; }
NodeRecordList openNodes; NodeRecordList closedNodes;
No hay comentarios:
Publicar un comentario