Commit 30fed0bd authored by Rémi BERTHO's avatar Rémi BERTHO

Add getter to Game

parent c1757bd6
/*
* NotFound.java
*
* Copyright 2014-2016
* Remi BERTHO <remi.bertho@openmailbox.org>
*
* This file is part of Csuper.
*
* Csuper 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 3 of the License, or
* (at your option) any later version.
*
* Csuper 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
package org.dalan.csuper.Core.Exception;
/**
* This class represent a error when there is an out of range.
*/
public class NotFound extends RuntimeException {
/**
* Constructor with the string parameter
* @param s the string of the error
*/
public NotFound(String s){
super(s);
}
}
/*
* WrongUse.java
*
* Copyright 2014-2016
* Remi BERTHO <remi.bertho@openmailbox.org>
*
* This file is part of Csuper.
*
* Csuper 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 3 of the License, or
* (at your option) any later version.
*
* Csuper 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
package org.dalan.csuper.Core.Exception;
/**
* This class represent a error when there is an out of range.
*/
public class WrongUse extends RuntimeException {
/**
* Constructor with the string parameter
* @param s the string of the error
*/
public WrongUse(String s){
super(s);
}
}
......@@ -347,7 +347,7 @@ public class GameConfiguration implements Cloneable, Parcelable {
sendSignalChange();
}
public boolean useMaximum() {
public boolean getUseMaximum() {
return use_maximum_;
}
......@@ -356,7 +356,7 @@ public class GameConfiguration implements Cloneable, Parcelable {
sendSignalChange();
}
public boolean turnBased() {
public boolean getTurnBased() {
return turn_based_;
}
......@@ -365,7 +365,7 @@ public class GameConfiguration implements Cloneable, Parcelable {
sendSignalChange();
}
public boolean useDistributor() {
public boolean getUseDistributor() {
return use_distributor_;
}
......@@ -383,7 +383,7 @@ public class GameConfiguration implements Cloneable, Parcelable {
sendSignalChange();
}
public boolean maxWinner() {
public boolean getMaxWinner() {
return max_winner_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment