This commit is contained in:
2019-11-05 19:01:33 -07:00
parent dea67dc3c0
commit ae02863a60
12 changed files with 99 additions and 0 deletions

View File

@@ -5,4 +5,20 @@
#ifndef CS3460_CPP_LIFESIMULATOR_HPP
#define CS3460_CPP_LIFESIMULATOR_HPP
#include <cstdint>
#include "Pattern.hpp"
class LifeSimulator
{
public:
LifeSimulator(std::uint8_t sizeX, std::uint8_t sizeY);
void insertPattern(const Pattern& pattern, std::uint8_t startX, std::uint8_t startY);
void update();
std::uint8_t getSizeX() const;
std::uint8_t getSizeY() const;
bool getCell(std::uint8_t x, std::uint8_t y) const;
};
#endif //CS3460_CPP_LIFESIMULATOR_HPP