1 /****************************************************************************** 2 * GameEventPleaseAcceptRejectResign.java - Fibs wants the player to accept or reject a resign 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 /** Fibs wants the player to accept or reject a resign. 32 * @author Dick Balaska 33 * @since 2011/05/18 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/GameEventPleaseAcceptOrRejectResign.java">cvs GameEventPleaseAcceptOrRejectResign.java</a> 37 */ 38 public class GameEventPleaseAcceptOrRejectResign extends GameEvent { 39 private int resigningPoints; 40 41 @Override 42 public Type getType() { 43 return(Type.PleaseAcceptOrRejectResign); 44 } 45 46 @Override 47 public Life getLife() { 48 return(Life.Transient); 49 } 50 51 /** A dummy parser. Nothing to parse for this event 52 * @param unused 53 */ 54 public void parse(String unused) { 55 } 56 57 /** Get how many points this resign event is for 58 * @return the resigningPoints 59 */ 60 public int getResigningPoints() { 61 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 this.resigningPoints = resigningPoints; 69 } 70 }