-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorld.java
More file actions
53 lines (39 loc) · 956 Bytes
/
World.java
File metadata and controls
53 lines (39 loc) · 956 Bytes
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import java.util.ArrayList;
import java.util.Arrays;
/**
*@author Tyler Lericos
*@version 1.0
*Interfaces
*Spring Semester/Freshman
*/
public class World {
String worldName;
ArrayList<Places> places = new ArrayList<Places>();//Hold type Places and its children
public World(){
}
/*
* World constructor with parameters for worldName and ArrayList<Places>
*/
public World(String worldName, ArrayList<Places> T) {
super();
this.worldName = worldName;
this.places = T;
}
/*
* ============================================
* Getters and Setters
* ============================================
*/
public String getWorldName() {
return worldName;
}
public void setWorldName(String worldName) {
this.worldName = worldName;
}
public ArrayList<Places> getPlaces() {
return places;
}
public void setPlaces(ArrayList<Places> T) {
this.places = T;
}
}