Methapolis
0.27
Main Page
Packages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
PlayerInput.java
Go to the documentation of this file.
1
package
micropolisj.network;
2
3
import
java.io.Serializable;
4
5
import
micropolisj.engine.ToolStroke;
6
12
public
class
PlayerInput
implements
Serializable{
13
14
//TODO allow inputs other than tools
15
16
private
ToolStroke
toolStroke
;
17
private
BudgetInput
budgetNumbers
;
18
19
20
21
public
PlayerInput
(
ToolStroke
tool) {
22
toolStroke
= tool;
23
}
24
25
public
ToolStroke
getToolStroke
() {
26
return
toolStroke
;
27
}
28
29
public
void
setBudgetNumbers
(
int
cityTax,
double
roadPercent,
double
policePct,
double
firePct,
double
researchPct) {
30
budgetNumbers
=
new
BudgetInput
();
31
budgetNumbers
.
cityTax
= cityTax;
32
budgetNumbers
.
roadPercent
= roadPercent;
33
budgetNumbers
.
policePercent
= policePct;
34
budgetNumbers
.
firePercent
= firePct;
35
budgetNumbers
.
researchPercent
= researchPct;
36
}
37
38
public
class
BudgetInput
implements
Serializable{
39
public
int
cityTax
;
40
public
double
roadPercent
;
41
public
double
policePercent
;
42
public
double
firePercent
;
43
public
double
researchPercent
;
44
}
45
46
public
BudgetInput
getBudgetNumbers
() {
47
return
budgetNumbers
;
48
}
49
}
src
micropolisj
network
PlayerInput.java
Generated on Thu Mar 27 2014 18:07:30 for Methapolis by
1.8.1.2