-
Notifications
You must be signed in to change notification settings - Fork 0
/
LaneEvent.java
95 lines (78 loc) · 1.64 KB
/
LaneEvent.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* $Id$
*
* Revisions:
* $Log: LaneEvent.java,v $
* Revision 1.6 2003/02/16 22:59:34 ???
* added mechnanical problem flag
*
* Revision 1.5 2003/02/02 23:55:31 ???
* Many many changes.
*
* Revision 1.4 2003/02/02 22:44:26 ???
* More data.
*
* Revision 1.3 2003/02/02 17:49:31 ???
* Modified.
*
* Revision 1.2 2003/01/30 21:21:07 ???
* *** empty log message ***
*
* Revision 1.1 2003/01/19 22:12:40 ???
* created laneevent and laneobserver
*
*
*/
import java.util.HashMap;
public class LaneEvent {
private Party p;
int frame;
int ball;
Bowler bowler;
int[][] cumulScore;
HashMap<Bowler , int[]> score;
int index;
int frameNum;
int[] curScores;
boolean mechProb;
public LaneEvent( Party pty, int theIndex, Bowler theBowler, int[][] theCumulScore, HashMap<Bowler , int[]>theScore, int theFrameNum, int[] theCurScores, int theBall, boolean mechProblem) {
p = pty;
index = theIndex;
bowler = theBowler;
cumulScore = theCumulScore;
score = theScore;
curScores = theCurScores;
frameNum = theFrameNum;
ball = theBall;
mechProb = mechProblem;
}
public boolean isMechanicalProblem() {
return mechProb;
}
public int getFrameNum() {
return frameNum;
}
public HashMap<Bowler , int[]> getScore( ) {
return score;
}
public int[] getCurScores(){
return curScores;
}
public int getIndex() {
return index;
}
public int getFrame( ) {
return frame;
}
public int getBall( ) {
return ball;
}
public int[][] getCumulScore(){
return cumulScore;
}
public Party getParty() {
return p;
}
public Bowler getBowler() {
return bowler;
}
};