lifegametransition.h 424 Bytes
Newer Older
Anthony Noir's avatar
Anthony Noir committed
1
2
3
4
5
#ifndef LIFEGAMETRANSITION_H
#define LIFEGAMETRANSITION_H

#include "transitionrule.hpp"

6
class LifeGameTransition : public TransitionRule
Anthony Noir's avatar
Anthony Noir committed
7
8
9
10
11
12
{
public:
    LifeGameTransition();
    bool acceptFormat(const std::vector<NeighborhoodFormat>&) const;
    unsigned int getState(unsigned int, const Neighborhood &) const;
};
13
REGISTER_FACTORY_ENTRY(TransitionRule, LifeGameTransition, "Game of Life");
Anthony Noir's avatar
Anthony Noir committed
14
15

#endif // LIFEGAMETRANSITION_H