Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Csuper-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rémi BERTHO
Csuper-Android
Commits
81afa506
Commit
81afa506
authored
Dec 16, 2015
by
Rémi BERTHO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add game configuration
parent
f45f2e1f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
749 additions
and
89 deletions
+749
-89
.idea/codeStyleSettings.xml
.idea/codeStyleSettings.xml
+249
-0
app/src/main/java/org/dalan/csuper/Activity/AboutActivity.java
...rc/main/java/org/dalan/csuper/Activity/AboutActivity.java
+35
-9
app/src/main/java/org/dalan/csuper/Activity/MainActivity.java
...src/main/java/org/dalan/csuper/Activity/MainActivity.java
+122
-79
app/src/main/java/org/dalan/csuper/Core/GameConfiguration.java
...rc/main/java/org/dalan/csuper/Core/GameConfiguration.java
+189
-0
app/src/main/java/org/dalan/csuper/Core/I18n.java
app/src/main/java/org/dalan/csuper/Core/I18n.java
+45
-0
app/src/main/java/org/dalan/csuper/Core/Share.java
app/src/main/java/org/dalan/csuper/Core/Share.java
+85
-0
app/src/main/res/layout/content_main.xml
app/src/main/res/layout/content_main.xml
+2
-1
app/src/main/res/values-fr/strings.xml
app/src/main/res/values-fr/strings.xml
+11
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+11
-0
No files found.
.idea/codeStyleSettings.xml
0 → 100644
View file @
81afa506
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectCodeStyleSettingsManager"
>
<option
name=
"PER_PROJECT_SETTINGS"
>
<value>
<option
name=
"OTHER_INDENT_OPTIONS"
>
<value>
<option
name=
"INDENT_SIZE"
value=
"4"
/>
<option
name=
"CONTINUATION_INDENT_SIZE"
value=
"8"
/>
<option
name=
"TAB_SIZE"
value=
"4"
/>
<option
name=
"USE_TAB_CHARACTER"
value=
"true"
/>
<option
name=
"SMART_TABS"
value=
"true"
/>
<option
name=
"LABEL_INDENT_SIZE"
value=
"0"
/>
<option
name=
"LABEL_INDENT_ABSOLUTE"
value=
"false"
/>
<option
name=
"USE_RELATIVE_INDENTS"
value=
"false"
/>
</value>
</option>
<option
name=
"CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND"
value=
"99"
/>
<option
name=
"NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND"
value=
"99"
/>
<option
name=
"PACKAGES_TO_USE_IMPORT_ON_DEMAND"
>
<value
/>
</option>
<option
name=
"IMPORT_LAYOUT_TABLE"
>
<value>
<package
name=
"android"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
"com"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
"junit"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
"net"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
"org"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
"java"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
"javax"
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
""
withSubpackages=
"true"
static=
"false"
/>
<emptyLine
/>
<package
name=
""
withSubpackages=
"true"
static=
"true"
/>
<emptyLine
/>
</value>
</option>
<option
name=
"RIGHT_MARGIN"
value=
"100"
/>
<AndroidXmlCodeStyleSettings>
<option
name=
"USE_CUSTOM_SETTINGS"
value=
"true"
/>
</AndroidXmlCodeStyleSettings>
<Objective-C-extensions>
<option
name=
"GENERATE_INSTANCE_VARIABLES_FOR_PROPERTIES"
value=
"ASK"
/>
<option
name=
"RELEASE_STYLE"
value=
"IVAR"
/>
<option
name=
"TYPE_QUALIFIERS_PLACEMENT"
value=
"BEFORE"
/>
<file>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Import"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Macro"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Typedef"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Enum"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Constant"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Global"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Struct"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"FunctionPredecl"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Function"
/>
</file>
<class>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Property"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"Synthesize"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"InitMethod"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"StaticMethod"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"InstanceMethod"
/>
<option
name=
"com.jetbrains.cidr.lang.util.OCDeclarationKind"
value=
"DeallocMethod"
/>
</class>
<extensions>
<pair
source=
"cpp"
header=
"h"
/>
<pair
source=
"c"
header=
"h"
/>
</extensions>
</Objective-C-extensions>
<XML>
<option
name=
"XML_KEEP_LINE_BREAKS"
value=
"false"
/>
<option
name=
"XML_ALIGN_ATTRIBUTES"
value=
"false"
/>
<option
name=
"XML_SPACE_INSIDE_EMPTY_TAG"
value=
"true"
/>
</XML>
<codeStyleSettings
language=
"JAVA"
>
<indentOptions>
<option
name=
"USE_TAB_CHARACTER"
value=
"true"
/>
<option
name=
"SMART_TABS"
value=
"true"
/>
</indentOptions>
</codeStyleSettings>
<codeStyleSettings
language=
"XML"
>
<option
name=
"FORCE_REARRANGE_MODE"
value=
"1"
/>
<indentOptions>
<option
name=
"CONTINUATION_INDENT_SIZE"
value=
"4"
/>
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>
xmlns:android
</NAME>
<XML_NAMESPACE
/>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
xmlns:.*
</NAME>
<XML_NAMESPACE
/>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:id
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:name
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
name
</NAME>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
style
</NAME>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*
</NAME>
<XML_NAMESPACE>
^$
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:layout_width
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:layout_height
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:layout_.*
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:width
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*:height
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*
</NAME>
<XML_NAMESPACE>
http://schemas.android.com/apk/res/android
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>
.*
</NAME>
<XML_NAMESPACE>
.*
</XML_NAMESPACE>
</AND>
</match>
<order>
BY_NAME
</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
</value>
</option>
<option
name=
"PREFERRED_PROJECT_CODE_STYLE"
value=
"Default (1)"
/>
</component>
</project>
\ No newline at end of file
app/src/main/java/org/dalan/csuper/Activity/AboutActivity.java
View file @
81afa506
/*
* AboutActivity.java
*
* Copyright 2014-2015
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.Activity
;
import
android.support.v7.app.AppCompatActivity
;
...
...
@@ -9,15 +35,15 @@ import org.dalan.csuper.R;
public
class
AboutActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_about
);
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_about
);
TextView
website
=
(
TextView
)
findViewById
(
R
.
id
.
about_website
);
website
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
TextView
website
=
(
TextView
)
findViewById
(
R
.
id
.
about_website
);
website
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
TextView
license
=
(
TextView
)
findViewById
(
R
.
id
.
about_license
);
license
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
}
TextView
license
=
(
TextView
)
findViewById
(
R
.
id
.
about_license
);
license
.
setMovementMethod
(
LinkMovementMethod
.
getInstance
());
}
}
app/src/main/java/org/dalan/csuper/Activity/MainActivity.java
View file @
81afa506
/*
* MainActivity.java
*
* Copyright 2014-2015
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.Activity
;
import
android.content.Intent
;
...
...
@@ -13,87 +39,104 @@ import android.support.v7.app.AppCompatActivity;
import
android.support.v7.widget.Toolbar
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.widget.TextView
;
import
org.dalan.csuper.Core.GameConfiguration
;
import
org.dalan.csuper.Core.I18n
;
import
org.dalan.csuper.R
;
public
class
MainActivity
extends
AppCompatActivity
implements
NavigationView
.
OnNavigationItemSelectedListener
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
Toolbar
toolbar
=
(
Toolbar
)
findViewById
(
R
.
id
.
toolbar
);
setSupportActionBar
(
toolbar
);
FloatingActionButton
fab
=
(
FloatingActionButton
)
findViewById
(
R
.
id
.
fab
);
fab
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Snackbar
.
make
(
view
,
"Replace with your own action"
,
Snackbar
.
LENGTH_LONG
)
.
setAction
(
"Action"
,
null
).
show
();
}
});
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
ActionBarDrawerToggle
toggle
=
new
ActionBarDrawerToggle
(
this
,
drawer
,
toolbar
,
R
.
string
.
navigation_drawer_open
,
R
.
string
.
navigation_drawer_close
);
drawer
.
setDrawerListener
(
toggle
);
toggle
.
syncState
();
NavigationView
navigationView
=
(
NavigationView
)
findViewById
(
R
.
id
.
nav_view
);
navigationView
.
setNavigationItemSelectedListener
(
this
);
}
@Override
public
void
onBackPressed
()
{
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
if
(
drawer
.
isDrawerOpen
(
GravityCompat
.
START
))
{
drawer
.
closeDrawer
(
GravityCompat
.
START
);
}
else
{
super
.
onBackPressed
();
}
}
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater
().
inflate
(
R
.
menu
.
main
,
menu
);
return
true
;
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int
id
=
item
.
getItemId
();
//noinspection SimplifiableIfStatement
if
(
id
==
R
.
id
.
action_settings
)
{
return
true
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
@SuppressWarnings
(
"StatementWithEmptyBody"
)
@Override
public
boolean
onNavigationItemSelected
(
MenuItem
item
)
{
// Handle navigation view item clicks here.
int
id
=
item
.
getItemId
();
if
(
id
==
R
.
id
.
new_file
)
{
}
else
if
(
id
==
R
.
id
.
open_file
)
{
}
else
if
(
id
==
R
.
id
.
about
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
AboutActivity
.
class
);
startActivity
(
intent
);
}
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
drawer
.
closeDrawer
(
GravityCompat
.
START
);
return
true
;
}
implements
NavigationView
.
OnNavigationItemSelectedListener
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
Toolbar
toolbar
=
(
Toolbar
)
findViewById
(
R
.
id
.
toolbar
);
setSupportActionBar
(
toolbar
);
// I18n
I18n
.
setContext
(
this
);
// Floatting button
FloatingActionButton
fab
=
(
FloatingActionButton
)
findViewById
(
R
.
id
.
fab
);
fab
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Snackbar
.
make
(
view
,
"Replace with your own action"
,
Snackbar
.
LENGTH_LONG
)
.
setAction
(
"Action"
,
null
).
show
();
}
});
// Side bar
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
ActionBarDrawerToggle
toggle
=
new
ActionBarDrawerToggle
(
this
,
drawer
,
toolbar
,
R
.
string
.
navigation_drawer_open
,
R
.
string
.
navigation_drawer_close
);
drawer
.
setDrawerListener
(
toggle
);
toggle
.
syncState
();
NavigationView
navigationView
=
(
NavigationView
)
findViewById
(
R
.
id
.
nav_view
);
navigationView
.
setNavigationItemSelectedListener
(
this
);
// Test
GameConfiguration
game_config
=
new
GameConfiguration
();
TextView
test
=
(
TextView
)
findViewById
(
R
.
id
.
test
);
test
.
setText
(
game_config
.
toString
());
}
@Override
public
void
onBackPressed
()
{
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
if
(
drawer
.
isDrawerOpen
(
GravityCompat
.
START
))
{
drawer
.
closeDrawer
(
GravityCompat
.
START
);
}
else
{
super
.
onBackPressed
();
}
}
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater
().
inflate
(
R
.
menu
.
main
,
menu
);
return
true
;
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int
id
=
item
.
getItemId
();
//noinspection SimplifiableIfStatement
if
(
id
==
R
.
id
.
action_settings
)
{
return
true
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
@SuppressWarnings
(
"StatementWithEmptyBody"
)
@Override
public
boolean
onNavigationItemSelected
(
MenuItem
item
)
{
// Handle navigation view item clicks here.
int
id
=
item
.
getItemId
();
if
(
id
==
R
.
id
.
new_file
)
{
}
else
if
(
id
==
R
.
id
.
open_file
)
{
}
else
if
(
id
==
R
.
id
.
about
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
AboutActivity
.
class
);
startActivity
(
intent
);
}
DrawerLayout
drawer
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
drawer
.
closeDrawer
(
GravityCompat
.
START
);
return
true
;
}
}
app/src/main/java/org/dalan/csuper/Core/GameConfiguration.java
0 → 100644
View file @
81afa506
/*
* GameConfiguration.java
*
* Copyright 2014-2015
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
;
import
org.dalan.csuper.R
;
public
class
GameConfiguration
{
private
double
nb_max_min_
=
0
;
private
boolean
use_maximum_
=
true
;
private
boolean
turn_based_
=
false
;
private
boolean
use_distributor_
=
false
;
private
int
decimal_place_
=
0
;
private
boolean
max_winner_
=
true
;
private
String
name_
=
""
;
private
double
initial_score_
=
0
;
private
int
nb_turn_distributor_
=
1
;
private
final
static
double
version_
=
1.1
;
//
// Constructor
//
public
GameConfiguration
(){
}
public
GameConfiguration
(
double
nb_max_min
,
boolean
use_maximum
,
boolean
turn_based
,
boolean
use_distributor
,
int
decimal_place
,
boolean
max_winner
,
String
name
,
double
initial_score
,
int
nb_turn_distributor
){
nb_max_min_
=
nb_max_min
;
use_maximum_
=
use_maximum
;
turn_based_
=
turn_based
;
use_distributor_
=
use_distributor
;
decimal_place_
=
decimal_place
;
max_winner_
=
max_winner
;
name_
=
name
;
initial_score_
=
initial_score
;
nb_turn_distributor_
=
nb_turn_distributor
;
}
//
// Function
//
public
boolean
equals
(
GameConfiguration
gc
){
return
((
nb_max_min_
==
gc
.
nb_max_min_
)
&&
(
use_maximum_
==
gc
.
use_maximum_
)
&&
(
turn_based_
==
gc
.
turn_based_
)
&&
(
use_distributor_
==
gc
.
use_distributor_
)
&&
(
decimal_place_
==
gc
.
decimal_place_
)
&&
(
max_winner_
==
gc
.
max_winner_
)
&&
(
name_
.
equals
(
gc
.
name_
))
&&
(
initial_score_
==
gc
.
initial_score_
)
&&
(
nb_turn_distributor_
==
gc
.
nb_turn_distributor_
));
}
public
String
toStringWithoutName
(){
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
I18n
.
tr
(
R
.
string
.
game_configuration_use_maximum
)
+
" "
+
Share
.
boolToString
(
use_maximum_
)
+
"\n"
);