Ajout de GOLTeamH

This commit is contained in:
Timothée Leclaire-Fournier 2024-01-17 19:19:29 -05:00
parent e8bafd6a97
commit 85ee6e4f17
2 changed files with 128 additions and 2 deletions

View File

@ -1 +1,98 @@
#include "GOLTeamH.h" #include "GOLTeamH.h"
size_t GOLTeamH::width() const
{
return size_t();
}
size_t GOLTeamH::height() const
{
return size_t();
}
size_t GOLTeamH::size() const
{
return size_t();
}
GOL::State GOLTeamH::state(int x, int y) const
{
return State();
}
std::string GOLTeamH::rule() const
{
return std::string();
}
GOL::BorderManagement GOLTeamH::borderManagement() const
{
return BorderManagement();
}
GOL::Color GOLTeamH::color(State state) const
{
return Color();
}
GOL::Statistics GOLTeamH::statistics() const
{
return Statistics();
}
GOL::ImplementationInformation GOLTeamH::information() const
{
return ImplementationInformation();
}
void GOLTeamH::resize(size_t width, size_t height, State defaultState)
{
mData.resize(width, height, defaultState);
}
bool GOLTeamH::setRule(std::string const& rule)
{
return false;
}
void GOLTeamH::setBorderManagement(BorderManagement borderManagement)
{
}
void GOLTeamH::setState(int x, int y, State state)
{
}
void GOLTeamH::fill(State state)
{
}
void GOLTeamH::fillAlternately(State firstCell)
{
}
void GOLTeamH::randomize(double percentAlive)
{
}
bool GOLTeamH::setFromPattern(std::string const& pattern, int centerX, int centerY)
{
return false;
}
bool GOLTeamH::setFromPattern(std::string const& pattern)
{
return false;
}
void GOLTeamH::setSolidColor(State state, Color const& color)
{
}
void GOLTeamH::processOneStep()
{
}
void GOLTeamH::updateImage(uint32_t* buffer, size_t buffer_size) const
{
}

View File

@ -1,6 +1,35 @@
#pragma once #pragma once
class GOLTeamH
{
#include <string>
#include <GOL.h>
#include "Grid.h"
class GOLTeamH : public GOL
{
public:
size_t width() const override;
size_t height() const override;
size_t size() const override;
State state(int x, int y) const override;
std::string rule() const override;
BorderManagement borderManagement() const override;
Color color(State state) const override;
Statistics statistics() const override;
ImplementationInformation information() const override;
void resize(size_t width, size_t height, State defaultState) override;
bool setRule(std::string const& rule) override;
void setBorderManagement(BorderManagement borderManagement) override;
void setState(int x, int y, State state) override;
void fill(State state) override;
void fillAlternately(State firstCell) override;
void randomize(double percentAlive) override;
bool setFromPattern(std::string const& pattern, int centerX, int centerY) override;
bool setFromPattern(std::string const& pattern) override;
void setSolidColor(State state, Color const& color) override;
void processOneStep() override;
void updateImage(uint32_t* buffer, size_t buffer_size) const override;
private:
Grid mData;
std::string mRule;
}; };