-
Notifications
You must be signed in to change notification settings - Fork 0
/
geneticpolygonpanel.h
36 lines (24 loc) · 1017 Bytes
/
geneticpolygonpanel.h
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
27
28
29
30
31
32
33
34
35
36
/* Interactive Gym Environment and Educational Kit (IGEEK) @version 0.x
@link https://github.com/kabuki-starship/igeek.git
@file /geneticpolygonpanel.h
@author Cale McCollough <<https://calemccollough.github.io>>
@license Copyright (C) 2014-9 Cale McCollough <<calemccollough.github.io>>;
All right reserved (R). This Source Code Form is subject to the terms of the
Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
this file, You can obtain one at <https://mozilla.org/MPL/2.0/>. */
#pragma once
#include <pch.h>
namespace _ {
class GeneticPolygonPanel : public JPanel
{
static const SI4 defaultMargin = 30;
GeneticPolygonPanel (GeneticPolygon thisShape, AString thisShapeLabel, SI4 width, SI4 height);
void paintComponent (Graphics g);
GeneticPolygon getGeneticPolygon ();
void respawn (SI4 numPoints, SI4 width, SI4 height, SI4 color, SI4 lifespan, double angle);
void setGeneticPolygon (GeneticPolygon newPoly);
private:
GeneticPolygon gPoly;
};
}
}