forked from fauvet/API_BUT5.5
		
	Modified JavaDocs and Added error throws in JD
This commit is contained in:
		@@ -10,6 +10,8 @@ public interface Plateau {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Return the current player
 | 
					     * Return the current player
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
					     * @throws NullPointerException if the game is over
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
     * @return the player
 | 
					     * @return the player
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    Player getPlayer();
 | 
					    Player getPlayer();
 | 
				
			||||||
@@ -29,29 +31,36 @@ public interface Plateau {
 | 
				
			|||||||
     * - if the move is a draw : 0
 | 
					     * - if the move is a draw : 0
 | 
				
			||||||
     * - if its a defeat move : -1
 | 
					     * - if its a defeat move : -1
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
					     * @throws NullPointerException if game is not over
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
     * @return the result
 | 
					     * @return the result
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    Result getResult();
 | 
					    Result getResult();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Gives previous played plies
 | 
					     * List next legals moves
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
					     * @throws NullPointerException if the game is over
 | 
				
			||||||
     * @return the iterator
 | 
					     * @return the iterator
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    Iterator<Ply> givePlies();
 | 
					    Iterator<Ply> givePlies();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Play a ply
 | 
					     * Play a future ply
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @throws IllegalArgumentException if the given ply is coming from wrong game
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param ply the ply
 | 
					     * @param ply the ply
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    void doo(Ply ply);
 | 
					    void doPly(Ply ply);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Removed a ply.
 | 
					     * Removed a previous ply.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @throws IllegalStateException if not allowed to come back on previous statement
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param ply the ply
 | 
					     * @param ply the ply
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    void undo(Ply ply);
 | 
					    void undoPly(Ply ply);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user