2015-05-27 12:12:11 +00:00
|
|
|
#ifndef CSM_TOOLS_PATHGRIDCHECK_H
|
|
|
|
#define CSM_TOOLS_PATHGRIDCHECK_H
|
|
|
|
|
|
|
|
#include "../world/collection.hpp"
|
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
struct Pathgrid;
|
|
|
|
template<typename T, typename AT>
|
|
|
|
class SubCellCollection;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
2015-05-29 09:28:25 +00:00
|
|
|
class SignalHandler;
|
2015-05-27 22:44:17 +00:00
|
|
|
|
|
|
|
struct Point
|
|
|
|
{
|
|
|
|
unsigned char mConnectionNum;
|
|
|
|
std::vector<int> mOtherIndex;
|
|
|
|
Point() : mConnectionNum(0), mOtherIndex(0) {}
|
|
|
|
};
|
|
|
|
|
2015-05-27 12:12:11 +00:00
|
|
|
class PathgridCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
2015-05-28 20:40:40 +00:00
|
|
|
bool mExtraCheck;
|
2015-05-29 09:28:25 +00:00
|
|
|
CSMTools::SignalHandler *mSigHandler;
|
|
|
|
|
2015-05-28 20:40:40 +00:00
|
|
|
const CSMWorld::SubCellCollection<CSMWorld::Pathgrid,
|
|
|
|
CSMWorld::IdAccessor<CSMWorld::Pathgrid> >& mPathgrids;
|
2015-05-27 12:12:11 +00:00
|
|
|
|
2015-05-28 20:40:40 +00:00
|
|
|
public:
|
2015-05-27 12:12:11 +00:00
|
|
|
|
2015-05-28 20:40:40 +00:00
|
|
|
PathgridCheckStage (const CSMWorld::SubCellCollection<CSMWorld::Pathgrid,
|
2015-05-29 09:28:25 +00:00
|
|
|
CSMWorld::IdAccessor<CSMWorld::Pathgrid> >& pathgrids, CSMTools::SignalHandler *signallHandler);
|
|
|
|
|
|
|
|
~PathgridCheckStage ();
|
2015-05-27 12:12:11 +00:00
|
|
|
|
2015-05-28 20:40:40 +00:00
|
|
|
virtual int setup();
|
2015-05-27 12:12:11 +00:00
|
|
|
|
2015-05-28 20:40:40 +00:00
|
|
|
virtual void perform (int stage, CSMDoc::Messages& messages);
|
2015-05-27 12:12:11 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CSM_TOOLS_PATHGRIDCHECK_H
|