25 lines
532 B
C++
25 lines
532 B
C++
//
|
|
// Created by Brady Bodily on 11/5/19.
|
|
//
|
|
|
|
#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
|