-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMarker.java
More file actions
75 lines (45 loc) · 760 Bytes
/
Marker.java
File metadata and controls
75 lines (45 loc) · 760 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package Auto120;
/**
*
*/
/**
* @author The Lloyd Family
*
*/
public class Marker {
int m_owner;
int m_location;
public Marker() {
// null marker constructor
}
public Marker(int x_id) {
// null marker constructor
m_owner = x_id;
m_location = 1;
}
public void m_assignowner (int x_owner)
{
m_owner = x_owner;
}
public int m_calclocation(int x_diceroll)
{
int x_calcvalue = m_location * x_diceroll;
return x_calcvalue;
}
public void m_setlocation(int x_newlocation)
{
m_location = x_newlocation;
}
public int m_get_location() {
return m_location;
}
public boolean m_get_status() {
if (m_location == 120)
{
return false;
}
else {
return true;
}
}
}