Coverage Report - com.buckosoft.fibs.domain.gameEvent.GameEventRejectResign
 
Classes in this File Line Coverage Branch Coverage Complexity
GameEventRejectResign
0%
0/7
N/A
1
 
 1  
 /******************************************************************************
 2  
  * GameEventRejectResign.java - 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  
  */
 10  
 
 11  
 /* 
 12  
  * This program is free software: you can redistribute it and/or modify
 13  
  * it under the terms of the GNU General Public License as published by
 14  
  * the Free Software Foundation, either version 3 of the License, or
 15  
  * (at your option) any later version.
 16  
  *
 17  
  * This program is distributed in the hope that it will be useful,
 18  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 19  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 20  
  * GNU General Public License for more details.
 21  
  *
 22  
  * You should have received a copy of the GNU General Public License
 23  
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 24  
  *
 25  
  * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>.
 26  
  * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp.
 27  
  * 
 28  
  */
 29  
 package com.buckosoft.fibs.domain.gameEvent;
 30  
 
 31  
 /** A Player has rejected the resign offer.
 32  
  * @author Dick Balaska
 33  
  * @since 2011/06/02
 34  
  * @version $Revision$ <br> $Date$
 35  
  * @see com.buckosoft.fibs.BuckoFIBS.GameManager
 36  
  * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/domain/gameEvent/GameEventRejectResign.java">cvs GameEventRejectResign.java</a>
 37  
  */
 38  0
 public class GameEventRejectResign extends GameEvent {
 39  
         private        int        resigningPoints;
 40  
 
 41  
         @Override
 42  
         public Type getType() {
 43  0
                 return(Type.RejectResign);
 44  
         }
 45  
 
 46  
         @Override
 47  
         public Life getLife() {
 48  0
                 return(Life.Persistent);
 49  
         }
 50  
 
 51  
         /** A dummy parser.  Nothing to parse for this event
 52  
          * @param unused
 53  
          */
 54  
         public void parse(String unused) {
 55  0
         }
 56  
 
 57  
         /** Get how many points this resign event is for
 58  
          * @return the resigningPoints
 59  
          */
 60  
         public int getResigningPoints() {
 61  0
                 return(resigningPoints);
 62  
         }
 63  
 
 64  
         /** Set how many points this resign event is for
 65  
          * @param resigningPoints the resigningPoints to set
 66  
          */
 67  
         public void setResigningPoints(int resigningPoints) {
 68  0
                 this.resigningPoints = resigningPoints;
 69  0
         }
 70  
 }