Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
GameEventPleaseAcceptOrRejectDouble |
|
| 1.0;1 |
1 | /****************************************************************************** | |
2 | * GameEventPleaseAcceptOrRejectDouble.java - Fibs wants the player to accept or reject a double | |
3 | * $Id$ | |
4 | * | |
5 | * BuckoFIBS - Backgammon by BuckoSoft | |
6 | * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp. | |
7 | * | |
8 | * $Log$ | |
9 | * Revision 1.2 2013/09/12 06:40:24 dick | |
10 | * Animating the double cube. | |
11 | * | |
12 | * Revision 1.1 2011/06/02 18:58:25 dick | |
13 | * GameEventPleaseAcceptRejectDouble becomes GameEventPleaseAcceptOrRejectDouble. | |
14 | * | |
15 | * Revision 1.1 2011/05/22 05:09:00 dick | |
16 | * All GameEvent objects are named starting with GameEvent. | |
17 | * | |
18 | */ | |
19 | ||
20 | /* | |
21 | * This program is free software: you can redistribute it and/or modify | |
22 | * it under the terms of the GNU General Public License as published by | |
23 | * the Free Software Foundation, either version 3 of the License, or | |
24 | * (at your option) any later version. | |
25 | * | |
26 | * This program is distributed in the hope that it will be useful, | |
27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
29 | * GNU General Public License for more details. | |
30 | * | |
31 | * You should have received a copy of the GNU General Public License | |
32 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
33 | * | |
34 | * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>. | |
35 | * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp. | |
36 | * | |
37 | */ | |
38 | package com.buckosoft.fibs.domain.gameEvent; | |
39 | ||
40 | /** Fibs wants the player to Accept or Reject a doubles | |
41 | * @author Dick Balaska | |
42 | * @since 2011/05/18 | |
43 | * @version $Revision$ <br> $Date$ | |
44 | * @see com.buckosoft.fibs.BuckoFIBS.GameManager | |
45 | * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/domain/gameEvent/GameEventPleaseAcceptOrRejectDouble.java">cvs GameEventPleaseAcceptOrRejectDouble.java</a> | |
46 | */ | |
47 | 0 | public class GameEventPleaseAcceptOrRejectDouble extends GameEvent { |
48 | int whoDoubled; | |
49 | 0 | boolean guiEvent = true; |
50 | ||
51 | @Override | |
52 | public Type getType() { | |
53 | 0 | return(Type.PleaseAcceptOrRejectDouble); |
54 | } | |
55 | ||
56 | @Override | |
57 | public Life getLife() { | |
58 | 0 | return(Life.Transient); |
59 | } | |
60 | ||
61 | /** A dummy parser. Nothing to parse for this event | |
62 | * @param unused | |
63 | */ | |
64 | public void parse(String unused) { | |
65 | 0 | } |
66 | ||
67 | /** | |
68 | * @return the whoDoubled | |
69 | */ | |
70 | public int getWhoDoubled() { | |
71 | 0 | return whoDoubled; |
72 | } | |
73 | ||
74 | /** | |
75 | * @param whoDoubled the whoDoubled to set | |
76 | */ | |
77 | public void setWhoDoubled(int whoDoubled) { | |
78 | 0 | this.whoDoubled = whoDoubled; |
79 | 0 | } |
80 | ||
81 | /** | |
82 | * @return the guiEvent | |
83 | */ | |
84 | public boolean isGuiEvent() { | |
85 | 0 | return guiEvent; |
86 | } | |
87 | ||
88 | /** | |
89 | * @param guiEvent the guiEvent to set | |
90 | */ | |
91 | public void setGuiEvent(boolean guiEvent) { | |
92 | 0 | this.guiEvent = guiEvent; |
93 | 0 | } |
94 | ||
95 | } |