Ajout de fichiers manquants et définitions manquantes

This commit is contained in:
Timothée Leclaire-Fournier 2024-01-21 00:59:27 -05:00
parent e29fe287bf
commit b0c940f633
9 changed files with 8 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -12,13 +12,14 @@ constexpr unsigned char MAX_ALPHA = 255;
class GOLTeamH : public GOL class GOLTeamH : public GOL
{ {
public: public:
size_t width() const override; // inline puisque trivial.
size_t height() const override; size_t width() const override { return mData.width(); }
size_t size() const override; size_t height() const override { return mData.height(); }
State state(int x, int y) const override; size_t size() const override { return mData.size(); }
std::string rule() const override; State state(int x, int y) const override { return mData.value(x, y); }
BorderManagement borderManagement() const override; std::string rule() const override { return mRule.value_or(std::move(std::string())); }
Color color(State state) const override; BorderManagement borderManagement() const override { return mBorderManagement.value_or(GOL::BorderManagement::immutableAsIs); }
Color color(State state) const override { return state == GOL::State::alive ? mAliveColor : mDeadColor; }
Statistics statistics() const override; Statistics statistics() const override;
ImplementationInformation information() const override; ImplementationInformation information() const override;