-
Notifications
You must be signed in to change notification settings - Fork 0
/
Position.java
76 lines (64 loc) · 1.59 KB
/
Position.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
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
75
76
package game;
import java.util.HashMap;
import java.util.Scanner;
/**
* This method creates a class for creating a Position which will be used as a
* super class when creating the Go Square, Serene Green and Saving Fields
*
*/
public abstract class Position {
public HashMap<Integer, SavingFieldTypes> currentSavingFieldType;
// each position must have a positionName
public String positionName;
/**
* Default constructor for Position
*/
public Position() {
}
/**
* Constructor with arguments for Position
*
* @param positionName
*/
public Position(String positionName) {
this.setPositionName(positionName);
}
/**
* Getter for positionName
*
* @return
*/
public String getPositionName() {
return positionName;
}
/**
* Setter for positionName
*
* @param positionName
*/
public void setPositionName(String positionName) {
this.positionName = positionName;
}
/*
* getter for current saving field type
* @return the current saving field type
*/
public HashMap<Integer, SavingFieldTypes> getCurrentSavingFieldType() {
return currentSavingFieldType;
}
/*setter for current saving field type
* * @param currentSavingFieldType the current Saving Field Type to set
*/
public void setCurrentSavingFieldType(HashMap<Integer, SavingFieldTypes> currentSavingFieldType) {
this.currentSavingFieldType = currentSavingFieldType;
}
/**
*
* @param Investor
* @param investorInput
* @param option
* @param saveOurPlanet
*/
public void PositionChoice(Investor Investor, Scanner investorInput, BoardOptions option, GameBoard saveOurPlanet) {
}
}