SetRundenAnzahl() hinzugefügt

This commit is contained in:
Malin.Sieckmann 2020-09-03 11:05:23 +02:00
parent 1e9e8388ec
commit 82f4147b28
4 changed files with 27 additions and 13 deletions

Binary file not shown.

View File

@ -8,8 +8,12 @@ comment3.params=pSiege
comment3.target=void\ setSiege(int)
comment4.params=pNiederlagen
comment4.target=void\ setNiederlagen(int)
comment5.params=
comment5.target=int\ getSiege()
comment5.params=pRundenAnzahl
comment5.target=void\ setRundenAnzahl(int)
comment6.params=
comment6.target=int\ getNiederlagen()
numComments=7
comment6.target=int\ getSiege()
comment7.params=
comment7.target=int\ getNiederlagen()
comment8.params=
comment8.target=int\ getRundenAnzahl()
numComments=9

View File

@ -3,7 +3,7 @@ public class Spieler {
String name;
int siege;
int niederlagen;
int spielAnzahl;
int rundenAnzahl;
Scanner konsole = new Scanner(System.in);
public Spieler(String pName) {
name = pName;
@ -27,6 +27,11 @@ public class Spieler {
niederlagen = pNiederlagen;
}
public void setRundenAnzahl(int pRundenAnzahl)
{
siege = pRundenAnzahl;
}
//Get-Methoden
public int getSiege()
{
@ -37,4 +42,9 @@ public class Spieler {
{
return niederlagen;
}
}
public int getRundenAnzahl()
{
return rundenAnzahl;
}
}

View File

@ -2,18 +2,18 @@
dependency1.from=TicTacToe
dependency1.to=Spieler
dependency1.type=UsesDependency
editor.fx.0.height=1000
editor.fx.0.width=1296
editor.fx.0.x=-8
editor.fx.0.y=-8
editor.fx.0.height=738
editor.fx.0.width=816
editor.fx.0.x=232
editor.fx.0.y=82
objectbench.height=93
objectbench.width=760
package.divider.horizontal=0.6
package.divider.vertical=0.8003992015968064
package.editor.height=394
package.editor.width=649
package.editor.x=288
package.editor.y=235
package.editor.width=636
package.editor.x=282
package.editor.y=204
package.frame.height=600
package.frame.width=800
package.numDependencies=1