From 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Thu, 2 Jul 2026 11:55:17 -0700 Subject: Init --- Homework/cs3460/gameoflife/PatternSet.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Homework/cs3460/gameoflife/PatternSet.hpp (limited to 'Homework/cs3460/gameoflife/PatternSet.hpp') diff --git a/Homework/cs3460/gameoflife/PatternSet.hpp b/Homework/cs3460/gameoflife/PatternSet.hpp new file mode 100644 index 0000000..9fae200 --- /dev/null +++ b/Homework/cs3460/gameoflife/PatternSet.hpp @@ -0,0 +1,25 @@ +#include "Pattern.hpp" + +#include +#include +#include + +#ifndef PATTERN_SET_HPP + #define PATTERN_SET_HPP + +class PatternSet : public Pattern +{ + protected: + std::set> m_aliveCells; + std::uint8_t m_width; + std::uint8_t m_height; + + public: + PatternSet(std::uint8_t width, std::uint8_t height); + PatternSet(const std::set> aliveCells); + virtual std::uint8_t getSizeX() const; + virtual std::uint8_t getSizeY() const; + virtual bool getCell(std::uint8_t x, std::uint8_t y) const; +}; + +#endif // PATTERN_SET_HPP -- cgit v1.3