summaryrefslogtreecommitdiff
path: root/Userland/Games/GameOfLife/Pattern.h
blob: 9fa3ce1c8b3f768b5ab576e46affbd9d0be66d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2021, Ryan Wilson <ryan@rdwilson.xyz>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include "Board.h"
#include <AK/Vector.h>
#include <LibGUI/Event.h>
#include <LibGUI/Forward.h>

class Pattern {
public:
    Pattern(Vector<String>);
    virtual ~Pattern();
    Vector<String> pattern() { return m_pattern; };
    GUI::Action* action() { return m_action; }
    void set_action(GUI::Action*);
    void rotate_clockwise();

private:
    RefPtr<GUI::Action> m_action;
    Vector<String> m_pattern;
};