Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AnimateEventPleaseAcceptOrRejectResign |
|
| 1.0;1 |
1 | /****************************************************************************** | |
2 | * AnimateEventPleaseAcceptOrRejectResign - Tell the GUI (to tell the user) to "Accept or Reject the resign." | |
3 | * $Id$ | |
4 | * | |
5 | * BuckoFIBS - Backgammon by BuckoSoft | |
6 | * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp. | |
7 | * | |
8 | * $Log$ | |
9 | * Revision 1.2 2011/06/05 06:55:04 dick | |
10 | * Fix cvslink | |
11 | * | |
12 | * Revision 1.1 2011/06/02 19:14:11 dick | |
13 | * Tell the GUI (to tell the user) to "Accept or Reject the resign." | |
14 | * | |
15 | */ | |
16 | ||
17 | /* | |
18 | * This program is free software: you can redistribute it and/or modify | |
19 | * it under the terms of the GNU General Public License as published by | |
20 | * the Free Software Foundation, either version 3 of the License, or | |
21 | * (at your option) any later version. | |
22 | * | |
23 | * This program is distributed in the hope that it will be useful, | |
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | * GNU General Public License for more details. | |
27 | * | |
28 | * You should have received a copy of the GNU General Public License | |
29 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
30 | * | |
31 | * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>. | |
32 | * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp. | |
33 | * | |
34 | */ | |
35 | package com.buckosoft.fibs.BuckoFIBS.gui.boardTab.boardPane; | |
36 | ||
37 | ||
38 | /** Tell the GUI (to tell the user) to "Accept or Reject the resign." | |
39 | * @author Dick Balaska | |
40 | * @since 2011/05/21 | |
41 | * @version $Revision$ <br> $Date$ | |
42 | * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/BuckoFIBS/gui/boardTab/boardPane/AnimateEventPleaseAcceptOrRejectResign.java">cvs AnimateEventPleaseAcceptOrRejectResign.java</a> | |
43 | */ | |
44 | public class AnimateEventPleaseAcceptOrRejectResign extends AnimateEventResign { | |
45 | ||
46 | @Override | |
47 | public int getDuration() { | |
48 | 0 | return 1500; |
49 | } | |
50 | ||
51 | @Override | |
52 | public Type getType() { | |
53 | 0 | return(Type.PleaseAcceptOrRejectResign); |
54 | } | |
55 | ||
56 | @Override | |
57 | public boolean isGui() { | |
58 | 0 | return true; |
59 | } | |
60 | ||
61 | /** Only constructor */ | |
62 | 0 | public AnimateEventPleaseAcceptOrRejectResign() { |
63 | 0 | offset = 1.0; |
64 | 0 | } |
65 | ||
66 | /** Set the start and end points for this flag animation | |
67 | * @param miniX | |
68 | * @param miniY | |
69 | * @param miniSize | |
70 | * @param x | |
71 | * @param y | |
72 | * @param flagSize | |
73 | * @return int[0]=X, [1]=Y, [2]=WIDTH, [3]=HEIGHT | |
74 | */ | |
75 | @Override | |
76 | public int[] getFlagParms(int miniX, int miniY, int miniSize, int x, int y, int flagSize) { | |
77 | 0 | this.offset = 1.0; |
78 | 0 | return(super.getFlagParms(miniX, miniY, miniSize, x, y, flagSize)); |
79 | } | |
80 | } |