View Javadoc
1   /******************************************************************************
2    * GameEventYouDouble.java - You have doubled
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/07/16 02:45:34  dick
13   * You have doubled.
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.domain.gameEvent;
36  
37  
38  /** You doubled.  Awaiting opponent's reply.
39   * @author Dick Balaska
40   * @since 2011/07/12
41   * @version $Revision$ <br> $Date$
42   * @see com.buckosoft.fibs.BuckoFIBS.GameManager
43   * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/domain/gameEvent/GameEventYouDouble.java">cvs GameEventYouDouble.java</a>
44   */
45  public class GameEventYouDouble extends GameEventDouble {
46  	@Override
47  	public Type getType() {
48  		return(Type.Double);
49  	}
50  
51  	public int getWhoDoubled() {
52  		return(whoDoubled);
53  	}
54  
55  	public void setWhoDoubled(int xo) {
56  		this.whoDoubled = xo;
57  	}
58  	
59  	
60  	/** A dummy parser.  Nothing to parse for this event
61  	 * @param unused
62  	 */
63  	public void parse(String unused) {
64  	}
65  
66  }