-
Notifications
You must be signed in to change notification settings - Fork 0
/
SimpleStar.java
26 lines (22 loc) · 916 Bytes
/
SimpleStar.java
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
//==============================================================================================\\
//=11/20/2015 Alexander Alava=\\
//=SimpleStar.java Isaac Roberts=\\
//= =\\
//= This is one of the classes defining a specific type of snowflake and its characteristics =\\
//==============================================================================================\\
public class SimpleStar extends SnowFlake {
public SimpleStar()
{
setType(21);
setDiameter((gen.nextDouble()*2+6));
setRadius();
}
void melt()
{
double d = getDiameter();
int t = getType();
d -= (d / (t+meltModifier));
setDiameter(d);
setRadius();
}
}