Spieler getName()
This commit is contained in:
Binary file not shown.
@@ -11,9 +11,11 @@ comment4.target=void\ setNiederlagen(int)
|
|||||||
comment5.params=pRundenAnzahl
|
comment5.params=pRundenAnzahl
|
||||||
comment5.target=void\ setRundenAnzahl(int)
|
comment5.target=void\ setRundenAnzahl(int)
|
||||||
comment6.params=
|
comment6.params=
|
||||||
comment6.target=int\ getSiege()
|
comment6.target=java.lang.String\ getName()
|
||||||
comment7.params=
|
comment7.params=
|
||||||
comment7.target=int\ getNiederlagen()
|
comment7.target=int\ getSiege()
|
||||||
comment8.params=
|
comment8.params=
|
||||||
comment8.target=int\ getRundenAnzahl()
|
comment8.target=int\ getNiederlagen()
|
||||||
numComments=9
|
comment9.params=
|
||||||
|
comment9.target=int\ getRundenAnzahl()
|
||||||
|
numComments=10
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ public class Spieler {
|
|||||||
int niederlagen;
|
int niederlagen;
|
||||||
int rundenAnzahl;
|
int rundenAnzahl;
|
||||||
Scanner konsole = new Scanner(System.in);
|
Scanner konsole = new Scanner(System.in);
|
||||||
public Spieler(String pName) {
|
public Spieler(String pName)
|
||||||
|
{
|
||||||
name = pName;
|
name = pName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,6 +34,11 @@ public class Spieler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get-Methoden
|
//Get-Methoden
|
||||||
|
public String getName()
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
public int getSiege()
|
public int getSiege()
|
||||||
{
|
{
|
||||||
return siege;
|
return siege;
|
||||||
|
|||||||
Reference in New Issue
Block a user