Coverage Report - com.buckosoft.fibs.BuckoFIBS.gui.boardTab.boardPane.AnimateEventRejectResign
 
Classes in this File Line Coverage Branch Coverage Complexity
AnimateEventRejectResign
0%
0/11
N/A
1
 
 1  
 /******************************************************************************
 2  
  * AnimateEventRejectResign -  A Player has rejected the resign offer.
 3  
  * $Id$
 4  
  * 
 5  
  * BuckoFIBS - Backgammon by BuckoSoft
 6  
  * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp.
 7  
  * 
 8  
  * $Log$
 9  
  * Revision 1.1  2011/06/02 19:14:34  dick
 10  
  * A Player has rejected the resign offer.
 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  
 /** A Player has rejected the resign offer.  "<code>bucko rejects. The game continues.</code>"
 36  
  * @author Dick Balaska
 37  
  * @since 2011/06/02
 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/board/boardTab/boardPane/AnimateEventRejectResign.java">cvs AnimateEventRejectResign.java</a>
 40  
  */
 41  
 public class AnimateEventRejectResign extends AnimateEventPleaseAcceptOrRejectResign {
 42  
 
 43  
         @Override
 44  
         public int getDuration() {
 45  0
                 return 500;
 46  
         }
 47  
 
 48  
         @Override
 49  
         public Type getType() {
 50  0
                 return(Type.RejectResign);
 51  
         }
 52  
 
 53  
         @Override
 54  
         public boolean isGui() {
 55  0
                 return false;
 56  
         }
 57  
 
 58  
         /** Only constructor */
 59  0
         public AnimateEventRejectResign() {
 60  0
                 offset = 0.0;
 61  0
         }
 62  
 
 63  
         /** Set the start and end points for the X-over-flag animation
 64  
          * @param miniX
 65  
          * @param miniY
 66  
          * @param miniSize
 67  
          * @param x
 68  
          * @param y
 69  
          * @param flagSize
 70  
          * @return int[0]=X, [1]=Y, [2]=WIDTH, [3]=HEIGHT
 71  
          */
 72  
         @Override
 73  
         public int[] getFlagParms(int miniX, int miniY, int miniSize, int x, int y, int flagSize) {
 74  0
                 double realOffset = this.offset;
 75  0
                 this.offset = 1.0;
 76  0
                 int[] i = super.getFlagParms(miniX, miniY, miniSize, x, y, flagSize);
 77  0
                 this.offset = realOffset;
 78  0
                 return(i);
 79  
         }
 80  
 }