forked from ITMO1232020/P3110-l3-l4-10101
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
26 lines (23 loc) · 884 Bytes
/
Main.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
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Bear Winnie = new Bear("Винни-Пух", Location.HOUSE);
Winnie.addParts(new Nose());
Piglet Piglet = new Piglet("Пятачок", Location.HOUSE);
Piglet.addParts(new Neck(), new Ears());
Clock clock = new Clock(10, 25);
Buffet buffet = new Buffet(Location.HOUSE);
Wind.setWind(true);
Snow.getStatus();
System.out.println(clock.toString());
Winnie.checkBuffet(buffet);
clock.add(30);
Winnie.setLocation(Location.OUTDOOR);
Piglet.setLocation(Location.OUTDOOR);
System.out.println(clock.toString());
Wind.setWind(false);
Snow.getStatus();
Snow.createSnow(1000, Winnie, Piglet);
Snow.getSnow(Winnie,Piglet);
}
}