View Javadoc
1   /******************************************************************************
2    * GameEventCantMove.java - Define a "Player Can't Move" event
3    * $Id$
4    * 
5    * BuckoFIBS - Backgammon by BuckoSoft
6    * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp.
7    * 
8    * $Log$
9    * Revision 1.1  2011/05/22 05:08:59  dick
10   * All GameEvent objects are named starting with GameEvent.
11   *
12   * Revision 1.2  2011/05/21 05:10:20  dick
13   * CantMove is a Life.Persistent object.
14   *
15   * Revision 1.1  2011/05/16 14:15:10  dick
16   * Define a "Player Can't Move" event.
17   *
18   */
19  
20  /* 
21   * This program is free software: you can redistribute it and/or modify
22   * it under the terms of the GNU General Public License as published by
23   * the Free Software Foundation, either version 3 of the License, or
24   * (at your option) any later version.
25   *
26   * This program is distributed in the hope that it will be useful,
27   * but WITHOUT ANY WARRANTY; without even the implied warranty of
28   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29   * GNU General Public License for more details.
30   *
31   * You should have received a copy of the GNU General Public License
32   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
33   *
34   * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>.
35   * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp.
36   * 
37   */
38  package com.buckosoft.fibs.domain.gameEvent;
39  
40  
41  
42  /** Define player can't move.  i.e. "<code>phatplayer can't move.</code>"
43   * @author Dick Balaska
44   * @since 2011/05/16
45   * @version $Revision$ <br> $Date$
46   * @see com.buckosoft.fibs.BuckoFIBS.GameManager
47   * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/domain/gameEvent/GameEventCantMove.java">cvs GameEventCantMove.java</a>
48   */
49  public class GameEventCantMove extends GameEvent {
50  
51  	@Override
52  	public Type getType() {
53  		return(Type.CantMove);
54  	}
55  
56  	@Override
57  	public Life getLife() {
58  		return(Life.Persistent);
59  	}
60  
61  	public void parse(String s) {
62  		String[] ss = s.split(" ");
63  		playerName = ss[0];
64  	}
65  
66  }