diff --git a/javadoc/Figure.html b/javadoc/Figure.html index f27702b..e437d96 100644 --- a/javadoc/Figure.html +++ b/javadoc/Figure.html @@ -1,11 +1,11 @@ - + Figure - + diff --git a/javadoc/Game.html b/javadoc/Game.html index 0f72db4..8b54c45 100644 --- a/javadoc/Game.html +++ b/javadoc/Game.html @@ -1,11 +1,11 @@ - + Game - + @@ -107,23 +107,31 @@ loadScripts(document, 'script');
checkDice(int dice, Player p, int countRolls)
-
 
+
+
Check if the Player is allowed to roll the dice again
+
int
checkFieldClear(int posToCheck, Player p, Game g)
-
 
+
+
Check if a target field is free or occupied by another figure
+
boolean
figureIsUsable(int dice, int figId, Player p, Game g)
-
 
+
+
Check if a figure is usable
+
ArrayList<Integer>
getUsableFigures(int dice, Player p, Game g)
-
 
+
+
Get List of all usable Figures in the current Play for one Player
+
static void
main(String[] args)
 
@@ -132,7 +140,9 @@ loadScripts(document, 'script'); int dice, Player p, Game g) -
 
+
+
Set a figure on a field according
+
@@ -181,6 +191,7 @@ loadScripts(document, 'script');
public boolean checkDice(int dice, Player p, int countRolls)
+
Check if the Player is allowed to roll the dice again
Parameters:
dice - Value of dice got from rolldice()
@@ -197,6 +208,7 @@ loadScripts(document, 'script');
public int checkFieldClear(int posToCheck, Player p, Game g)
+
Check if a target field is free or occupied by another figure
Parameters:
posToCheck - Target position to check
@@ -213,6 +225,7 @@ loadScripts(document, 'script');
public ArrayList<Integer> getUsableFigures(int dice, Player p, Game g)
+
Get List of all usable Figures in the current Play for one Player
Parameters:
dice - Value of dice got from rolldice()
@@ -230,6 +243,7 @@ loadScripts(document, 'script'); int figId, Player p, Game g) +
Check if a figure is usable
Parameters:
dice - Value of dice got from rolldice()
@@ -248,6 +262,7 @@ loadScripts(document, 'script'); int dice, Player p, Game g) +
Set a figure on a field according
Parameters:
figId - id of figure to check
diff --git a/javadoc/GameTest.html b/javadoc/GameTest.html index 47fd916..265da78 100644 --- a/javadoc/GameTest.html +++ b/javadoc/GameTest.html @@ -1,11 +1,11 @@ - + GameTest - + diff --git a/javadoc/Gameboard.html b/javadoc/Gameboard.html index 75d1d2f..e34e492 100644 --- a/javadoc/Gameboard.html +++ b/javadoc/Gameboard.html @@ -1,11 +1,11 @@ - + Gameboard - + diff --git a/javadoc/GameboardTest.html b/javadoc/GameboardTest.html index 3b5642e..f64ce17 100644 --- a/javadoc/GameboardTest.html +++ b/javadoc/GameboardTest.html @@ -1,11 +1,11 @@ - + GameboardTest - + diff --git a/javadoc/Player.html b/javadoc/Player.html index 817d971..0f6e9ae 100644 --- a/javadoc/Player.html +++ b/javadoc/Player.html @@ -1,11 +1,11 @@ - + Player - + @@ -108,13 +108,17 @@ loadScripts(document, 'script');
Description
int
-
 
+
+
Checks if the Player has figures in the base (off gameboard)
+
boolean
 
int
choose(ArrayList<Integer> usableFigures)
-
 
+
+
Get the user input on witch figure the user wants to move
+
int
 
@@ -178,11 +182,12 @@ loadScripts(document, 'script');

checkFigureInBase

public int checkFigureInBase(ArrayList<Figure> figures)
+
Checks if the Player has figures in the base (off gameboard)
Parameters:
figures - figures of the current Player
Returns:
-
true if there is at least one figure in the base (of gameboard)
+
true if there is at least one figure in the base (off gameboard)
@@ -190,6 +195,7 @@ loadScripts(document, 'script');

choose

public int choose(ArrayList<Integer> usableFigures)
+
Get the user input on witch figure the user wants to move
Parameters:
usableFigures - list of usable Figures to choose from
diff --git a/javadoc/PlayerTest.html b/javadoc/PlayerTest.html index 980c2da..e55b5f5 100644 --- a/javadoc/PlayerTest.html +++ b/javadoc/PlayerTest.html @@ -1,11 +1,11 @@ - + PlayerTest - + diff --git a/javadoc/allclasses-index.html b/javadoc/allclasses-index.html index 1896b43..eef8946 100644 --- a/javadoc/allclasses-index.html +++ b/javadoc/allclasses-index.html @@ -1,11 +1,11 @@ - + All Classes and Interfaces - + diff --git a/javadoc/allpackages-index.html b/javadoc/allpackages-index.html index afd5aea..f5f01e2 100644 --- a/javadoc/allpackages-index.html +++ b/javadoc/allpackages-index.html @@ -1,11 +1,11 @@ - + All Packages - + diff --git a/javadoc/help-doc.html b/javadoc/help-doc.html index 2155067..1e6d10c 100644 --- a/javadoc/help-doc.html +++ b/javadoc/help-doc.html @@ -1,11 +1,11 @@ - + API Help - + diff --git a/javadoc/index-files/index-1.html b/javadoc/index-files/index-1.html index eafb8e4..eb36fab 100644 --- a/javadoc/index-files/index-1.html +++ b/javadoc/index-files/index-1.html @@ -1,11 +1,11 @@ - + C-Index - + @@ -53,15 +53,23 @@ loadScripts(document, 'script');

C

checkDice(int, Player, int) - Method in class Game
-
 
+
+
Check if the Player is allowed to roll the dice again
+
checkFieldClear(int, Player, Game) - Method in class Game
-
 
+
+
Check if a target field is free or occupied by another figure
+
checkFigureInBase(ArrayList<Figure>) - Method in class Player
-
 
+
+
Checks if the Player has figures in the base (off gameboard)
+
checkGameWin(ArrayList<Figure>) - Method in class Player
 
choose(ArrayList<Integer>) - Method in class Player
-
 
+
+
Get the user input on witch figure the user wants to move
+
C F G I M P R S T 
All Classes and Interfaces|All Packages diff --git a/javadoc/index-files/index-2.html b/javadoc/index-files/index-2.html index 6444caf..8b920e2 100644 --- a/javadoc/index-files/index-2.html +++ b/javadoc/index-files/index-2.html @@ -1,11 +1,11 @@ - + F-Index - + @@ -57,7 +57,9 @@ loadScripts(document, 'script');
Figure() - Constructor for class Figure
 
figureIsUsable(int, int, Player, Game) - Method in class Game
-
 
+
+
Check if a figure is usable
+
C F G I M P R S T 
All Classes and Interfaces|All Packages diff --git a/javadoc/index-files/index-3.html b/javadoc/index-files/index-3.html index 02ee1b2..7fb9e1b 100644 --- a/javadoc/index-files/index-3.html +++ b/javadoc/index-files/index-3.html @@ -1,11 +1,11 @@ - + G-Index - + @@ -71,7 +71,9 @@ loadScripts(document, 'script');
getPosition() - Method in class Figure
 
getUsableFigures(int, Player, Game) - Method in class Game
-
 
+
+
Get List of all usable Figures in the current Play for one Player
+
C F G I M P R S T 
All Classes and Interfaces|All Packages diff --git a/javadoc/index-files/index-4.html b/javadoc/index-files/index-4.html index 37c98cd..ce7c12e 100644 --- a/javadoc/index-files/index-4.html +++ b/javadoc/index-files/index-4.html @@ -1,11 +1,11 @@ - + I-Index - + diff --git a/javadoc/index-files/index-5.html b/javadoc/index-files/index-5.html index 289723a..356eb60 100644 --- a/javadoc/index-files/index-5.html +++ b/javadoc/index-files/index-5.html @@ -1,11 +1,11 @@ - + M-Index - + diff --git a/javadoc/index-files/index-6.html b/javadoc/index-files/index-6.html index 3e1c47a..9324022 100644 --- a/javadoc/index-files/index-6.html +++ b/javadoc/index-files/index-6.html @@ -1,11 +1,11 @@ - + P-Index - + diff --git a/javadoc/index-files/index-7.html b/javadoc/index-files/index-7.html index 016f230..b9c003d 100644 --- a/javadoc/index-files/index-7.html +++ b/javadoc/index-files/index-7.html @@ -1,11 +1,11 @@ - + R-Index - + diff --git a/javadoc/index-files/index-8.html b/javadoc/index-files/index-8.html index a3af832..ad786b8 100644 --- a/javadoc/index-files/index-8.html +++ b/javadoc/index-files/index-8.html @@ -1,11 +1,11 @@ - + S-Index - + @@ -53,7 +53,9 @@ loadScripts(document, 'script');

S

setFigure(int, int, Player, Game) - Method in class Game
-
 
+
+
Set a figure on a field according
+
setPosition(int) - Method in class Figure
 
diff --git a/javadoc/index-files/index-9.html b/javadoc/index-files/index-9.html index d916981..42d25af 100644 --- a/javadoc/index-files/index-9.html +++ b/javadoc/index-files/index-9.html @@ -1,11 +1,11 @@ - + T-Index - + diff --git a/javadoc/index.html b/javadoc/index.html index 20a5e7c..9e9e41b 100644 --- a/javadoc/index.html +++ b/javadoc/index.html @@ -1,11 +1,11 @@ - + Generated Documentation (Untitled) - + diff --git a/javadoc/overview-tree.html b/javadoc/overview-tree.html index 371a7cf..081f57a 100644 --- a/javadoc/overview-tree.html +++ b/javadoc/overview-tree.html @@ -1,11 +1,11 @@ - + Class Hierarchy - + diff --git a/javadoc/package-summary.html b/javadoc/package-summary.html index 3757ecf..5241f11 100644 --- a/javadoc/package-summary.html +++ b/javadoc/package-summary.html @@ -1,11 +1,11 @@ - + Unnamed Package - + diff --git a/javadoc/package-tree.html b/javadoc/package-tree.html index c4672ca..27e5bd3 100644 --- a/javadoc/package-tree.html +++ b/javadoc/package-tree.html @@ -1,11 +1,11 @@ - + Class Hierarchy - + diff --git a/src/main/java/Game.java b/src/main/java/Game.java index 9aebcdf..ba733b8 100644 --- a/src/main/java/Game.java +++ b/src/main/java/Game.java @@ -50,6 +50,7 @@ public class Game { } /** + * Check if the Player is allowed to roll the dice again * @param dice Value of dice got from rolldice() * @param p active Player * @param countRolls Counter how often the Player already rolled the dice @@ -63,6 +64,7 @@ public class Game { } /** + * Check if a target field is free or occupied by another figure * @param posToCheck Target position to check * @param p active Player * @param g game instance @@ -86,6 +88,7 @@ public class Game { } /** + * Get List of all usable Figures in the current Play for one Player * @param dice Value of dice got from rolldice() * @param p active Player * @param g game instance @@ -102,6 +105,7 @@ public class Game { } /** + * Check if a figure is usable * @param dice Value of dice got from rolldice() * @param figId id of figure to check * @param p active Player @@ -129,6 +133,7 @@ public class Game { } /** + * Set a figure on a field according * @param figId id of figure to check * @param dice Value of dice got from rolldice() * @param p active Player diff --git a/src/main/java/Player.java b/src/main/java/Player.java index add07e8..5346be7 100644 --- a/src/main/java/Player.java +++ b/src/main/java/Player.java @@ -44,8 +44,9 @@ public class Player { } /** + * Checks if the Player has figures in the base (off gameboard) * @param figures figures of the current Player - * @return true if there is at least one figure in the base (of gameboard) + * @return true if there is at least one figure in the base (off gameboard) */ public int checkFigureInBase(ArrayList
figures) { Iterator
it = figures.iterator(); @@ -61,6 +62,7 @@ public class Player { } /** + * Get the user input on witch figure the user wants to move * @param usableFigures list of usable Figures to choose from * @return int figid of the figure chosen */