Package cero.games.uno

Source Code of cero.games.uno.UnoGame

/*
*  Cero Project - Copyright   2006 The Cero Developement Team
*  (Michael Laguerre, Camille Roux, Matthieu Segret, Mathieu Sivade)
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the Free
*  Software Foundation; either version 2 of the License, or (at your option)
*  any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
*  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
*  for more details.
*/

package cero.games.uno;

import cero.games.Round;
import cero.games.base.ActionLookAtZone;
import cero.games.base.GameBase;
import cero.games.base.RoundBase;
import cero.games.base.ZoneFile;
import cero.games.base.ZonePile;

/**
* Uno game
*
* @author Roux Camille
*/
public class UnoGame extends GameBase {
 
  public UnoGame(){
    getRounds().add(new RoundBase());
   
    getActions().add(new ActionLookAtZone());
    getActions().add(new ActionPick());
    getActions().add(new ActionPlayACard());
    getActions().add(new ActionSkipTurn());
  }

  public String getGameName() {
    return "Cero official uno";
  }
 
  public ZonePile getTalon() {
    return (ZonePile)getZones().get("Talon");
  }

  public ZoneFile getStock() {
    return (ZoneFile) getZones().get("Stock");
  }

  public Round getMainRound() {
    return getRounds().get(0);
  }
}
TOP

Related Classes of cero.games.uno.UnoGame

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.