-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.java
More file actions
38 lines (30 loc) · 771 Bytes
/
Copy pathMap.java
File metadata and controls
38 lines (30 loc) · 771 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
package lastproj;
public class Map {
private String title;
private int value; // price to buy for property || tax payment
// 0 = property || 1 = tax || 2 = card || 3 = go || 4 = jail || 5 = none
private int type;
public Map(String title, int type) {
this.title = title;
this.type = type;
}
public Map(String title, int value, int type) {
this.title = title;
this.value = value;
this.type = type;
}
public String getTitle() {
return this.title;
}
public int getVal() {
return this.value;
}
public int getType() {
return this.type;
}
// to be overridden by class property only
public int getRent() { return 0; }
public int getSell() { return 0; }
public String getOwner() { return ""; }
public void setOwner(String name) {}
}