mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-28 23:06:24 +02:00
- Fixed compilation errors on clang
- Removed compiler warnings of unused variables
This commit is contained in:
parent
900d7a03f0
commit
39d3102905
@ -114,7 +114,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T = CGoal> class CGoal : public AbstractGoal
|
||||
template <typename T> class CGoal : public AbstractGoal
|
||||
{
|
||||
public:
|
||||
CGoal<T> (EGoals goal = INVALID) : AbstractGoal (goal)
|
||||
@ -146,11 +146,11 @@ public:
|
||||
};
|
||||
|
||||
//There seems to be some ambiguity on these two, template function keeps form consitent
|
||||
template <typename T> shared_ptr<CGoal<T>> sptr(CGoal<T>& tmp)
|
||||
template <typename T> shared_ptr<CGoal<T>> sptr(const CGoal<T> & tmp)
|
||||
{
|
||||
return make_shared<CGoal<T>> (tmp);
|
||||
}
|
||||
template <typename T> shared_ptr<CGoal<T>> sptr(T& obj)
|
||||
template <typename T> shared_ptr<CGoal<T>> sptr(const T & obj)
|
||||
{
|
||||
return make_shared<CGoal<T>> (obj);
|
||||
}
|
||||
@ -304,4 +304,4 @@ class CIssueCommand : public CGoal<CIssueCommand>
|
||||
TSubgoal whatToDoToAchieve() override;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "StdInc.h"
|
||||
#include "CZoneGraphGenerator.h"
|
||||
|
||||
CZoneCell::CZoneCell(const CRmgTemplateZone * zone) : zone(zone)
|
||||
CZoneCell::CZoneCell(const CRmgTemplateZone * zone)// : zone(zone)
|
||||
{
|
||||
|
||||
}
|
||||
@ -23,7 +23,7 @@ CZoneGraph::CZoneGraph()
|
||||
|
||||
}
|
||||
|
||||
CZoneGraphGenerator::CZoneGraphGenerator() : gen(nullptr)
|
||||
CZoneGraphGenerator::CZoneGraphGenerator()// : gen(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
explicit CZoneCell(const CRmgTemplateZone * zone);
|
||||
|
||||
private:
|
||||
const CRmgTemplateZone * zone;
|
||||
//const CRmgTemplateZone * zone;
|
||||
|
||||
//TODO additional data
|
||||
};
|
||||
@ -44,5 +44,5 @@ public:
|
||||
|
||||
private:
|
||||
unique_ptr<CZoneGraph> graph;
|
||||
CRandomGenerator * gen;
|
||||
//CRandomGenerator * gen;
|
||||
};
|
||||
|
@ -14,12 +14,12 @@
|
||||
|
||||
#include "CZoneGraphGenerator.h"
|
||||
|
||||
CPlacedZone::CPlacedZone(const CRmgTemplateZone * zone) : zone(zone)
|
||||
CPlacedZone::CPlacedZone(const CRmgTemplateZone * zone)// : zone(zone)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CZonePlacer::CZonePlacer() : map(nullptr), gen(nullptr)
|
||||
CZonePlacer::CZonePlacer()// : map(nullptr), gen(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
explicit CPlacedZone(const CRmgTemplateZone * zone);
|
||||
|
||||
private:
|
||||
const CRmgTemplateZone * zone;
|
||||
//const CRmgTemplateZone * zone;
|
||||
|
||||
//TODO exact outline data of zone
|
||||
//TODO perhaps further zone data, guards, obstacles, etc...
|
||||
@ -39,7 +39,7 @@ public:
|
||||
void placeZones(CMap * map, unique_ptr<CZoneGraph> graph, CRandomGenerator * gen);
|
||||
|
||||
private:
|
||||
CMap * map;
|
||||
//CMap * map;
|
||||
unique_ptr<CZoneGraph> graph;
|
||||
CRandomGenerator * gen;
|
||||
//CRandomGenerator * gen;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user