Petits tweaks
This commit is contained in:
parent
421526ba66
commit
c3d13d087e
@ -116,7 +116,7 @@ bool GOLTeamH::setRule(std::string const& rule)
|
||||
return false;
|
||||
}
|
||||
|
||||
void GOLTeamH::setBorderManagement(BorderManagement borderManagement)
|
||||
void GOLTeamH::setBorderManagement(GOL::BorderManagement borderManagement)
|
||||
{
|
||||
mBorderManagement = borderManagement;
|
||||
mIteration = 0;
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
|
||||
private:
|
||||
std::optional<std::string> mRule;
|
||||
std::optional<GOL::BorderManagement> mBorderManagement;
|
||||
std::optional<BorderManagement> mBorderManagement;
|
||||
std::optional<IterationType> mIteration;
|
||||
|
||||
Grid mData;
|
||||
|
@ -115,6 +115,8 @@
|
||||
<ClCompile Include="main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\GOLAppLib\header\GOL.h" />
|
||||
<QtMoc Include="..\GOLAppLib\header\GOLApp.h" />
|
||||
<ClInclude Include="GOLTeamH.h" />
|
||||
<ClInclude Include="Grid.h" />
|
||||
</ItemGroup>
|
||||
|
@ -45,5 +45,13 @@
|
||||
<ClInclude Include="GOLTeamH.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\GOLAppLib\header\GOL.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<QtMoc Include="..\GOLAppLib\header\GOLApp.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</QtMoc>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -7,7 +7,7 @@ Grid::Grid()
|
||||
}
|
||||
|
||||
Grid::Grid(size_t width, size_t height, CellType initValue)
|
||||
:mWidth{ width }, mHeight{ height }, mEngine(mRandomDevice), mDistribution(0.0, 1.0)
|
||||
:mWidth{ width }, mHeight{ height }, mEngine(mRandomDevice()), mDistribution(0.0, 1.0)
|
||||
{
|
||||
resize(width, height, initValue);
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <random>
|
||||
|
||||
#include "GOL.h"
|
||||
|
||||
class Grid // Classe facilitant la gestion d'un tableau dynamique 2d.
|
||||
|
BIN
GPA675Laboratoire1.pdf
Normal file
BIN
GPA675Laboratoire1.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user