Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AnimateEventFirstRoll |
|
| 1.0;1 |
1 | /****************************************************************************** | |
2 | * AnimateEventFirstRoll.java - Run the First Roll animation | |
3 | * $Id$ | |
4 | * | |
5 | * BuckoFIBS - Backgammon by BuckoSoft | |
6 | * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp. | |
7 | * | |
8 | * $Log$ | |
9 | * Revision 1.1 2011/07/04 03:40:10 dick | |
10 | * Run the First Roll animation. | |
11 | * | |
12 | */ | |
13 | ||
14 | /* | |
15 | * This program is free software: you can redistribute it and/or modify | |
16 | * it under the terms of the GNU General Public License as published by | |
17 | * the Free Software Foundation, either version 3 of the License, or | |
18 | * (at your option) any later version. | |
19 | * | |
20 | * This program is distributed in the hope that it will be useful, | |
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | * GNU General Public License for more details. | |
24 | * | |
25 | * You should have received a copy of the GNU General Public License | |
26 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
27 | * | |
28 | * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>. | |
29 | * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp. | |
30 | * | |
31 | */ | |
32 | package com.buckosoft.fibs.BuckoFIBS.gui.boardTab.boardPane; | |
33 | ||
34 | ||
35 | /** Run the First Roll animation. | |
36 | * @author Dick Balaska | |
37 | * @since 2011/06/25 | |
38 | * @version $Revision$ <br> $Date$ | |
39 | * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/BuckoFIBS/gui/boardTab/boardPane/AnimateEventFirstRoll.java">cvs AnimateEventFirstRoll.java</a> | |
40 | */ | |
41 | 0 | public class AnimateEventFirstRoll extends AnimateEvent { |
42 | private int whiteDie; | |
43 | private int blackDie; | |
44 | private String whitePlayer; | |
45 | private String blackPlayer; | |
46 | ||
47 | @Override | |
48 | public int getDuration() { | |
49 | 0 | return 1000; |
50 | } | |
51 | ||
52 | @Override | |
53 | public Type getType() { | |
54 | 0 | return(Type.FirstRoll); |
55 | } | |
56 | ||
57 | @Override | |
58 | public boolean isGui() { | |
59 | 0 | return false; |
60 | } | |
61 | ||
62 | /** | |
63 | * @return the whiteDie | |
64 | */ | |
65 | public int getWhiteDie() { | |
66 | 0 | return whiteDie; |
67 | } | |
68 | ||
69 | /** | |
70 | * @param whiteDie the whiteDie to set | |
71 | */ | |
72 | public void setWhiteDie(int whiteDie) { | |
73 | 0 | this.whiteDie = whiteDie; |
74 | 0 | } |
75 | ||
76 | /** | |
77 | * @return the blackDie | |
78 | */ | |
79 | public int getBlackDie() { | |
80 | 0 | return blackDie; |
81 | } | |
82 | ||
83 | /** | |
84 | * @param blackDie the blackDie to set | |
85 | */ | |
86 | public void setBlackDie(int blackDie) { | |
87 | 0 | this.blackDie = blackDie; |
88 | 0 | } |
89 | ||
90 | /** | |
91 | * @return the whitePlayer | |
92 | */ | |
93 | public String getWhitePlayer() { | |
94 | 0 | return whitePlayer; |
95 | } | |
96 | ||
97 | /** | |
98 | * @param whitePlayer the whitePlayer to set | |
99 | */ | |
100 | public void setWhitePlayer(String whitePlayer) { | |
101 | 0 | this.whitePlayer = whitePlayer; |
102 | 0 | } |
103 | ||
104 | /** | |
105 | * @return the blackPlayer | |
106 | */ | |
107 | public String getBlackPlayer() { | |
108 | 0 | return blackPlayer; |
109 | } | |
110 | ||
111 | /** | |
112 | * @param blackPlayer the blackPlayer to set | |
113 | */ | |
114 | public void setBlackPlayer(String blackPlayer) { | |
115 | 0 | this.blackPlayer = blackPlayer; |
116 | 0 | } |
117 | ||
118 | } |