-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathPlayer.java
More file actions
51 lines (30 loc) · 884 Bytes
/
Player.java
File metadata and controls
51 lines (30 loc) · 884 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
package monopoly;
/**
* Created by fjricci on 6/22/2015.
* An interface for a monopoly player, to allow for different types of players (ie CPU vs Human)
*/
interface Player {
/* Player stuff */
void addProperty(Square square);
void move(int numSpaces);
void moveTo(int pos);
int position();
Iterable<Square> properties();
String name();
int getMoney();
void excMoney(int money);
void toJail();
boolean stayJail();
void sellProp(Square sq);
void leaveJail();
boolean inJail();
void addJailFree(boolean chance);
boolean useJailFree();
int numJailFree();
int getAssets();
/* Input stuff */
boolean inputBool(Monopoly.State state);
int inputInt(Monopoly.State state);
int inputDecision(Monopoly.State state, String[] choices);
Player inputPlayer(Monopoly.State state, Player notAllowed);
}