package ru.job4j.figure;

import ru.job4j.game.*;

/**.
* Chapter_002
* Task 2.9.2
* Interface for create figure
*
* @author Anton Vasilyuk
* @version 1.0
* @since 0.1
*/

public abstract class Figure {


    /**.
     * @cellPosition position the sell
     */
    private final Cell cellPosition;

    /**.
     * Constructor
     * @param position is cell for new figure
     */
    public Figure(Cell position){
        this.cellPosition = position;
    }

	/**.
	* Getter for this position
	*/
	public abstract Cell getCell();

    /**.
     * Abstract method building way for the figure
     * @param dist finish point
     * @return way array cells
     */
    public abstract Cell[] way(Cell dist) throws ImposibleMoveException;

}
@@ -228,17 +228,21 @@
 osition 
-p
+cellP
 osition 
@@ -268,13 +268,15 @@
   pr
-ivate
+otected
  fin
@@ -340,17 +340,21 @@
  @param 
-p
+cellP
 osition 
@@ -407,17 +407,21 @@
 re(Cell 
-p
+cellP
 osition)
@@ -450,17 +450,21 @@
 ition = 
-p
+cellP
 osition;
@@ -475,15 +475,22 @@
  %7D%0A%0A
-%09
+    
 /**.%0A
-%09
+     
 * Ge
@@ -507,17 +507,21 @@
 his 
-p
+cellP
 osition%0A
 %09*/%0A
@@ -520,44 +520,83 @@
 ion%0A
-%09*/%0A%09public abstract Cell getCell();
+     */%0A    public Cell getCell() %7B%0A        return this.cellPosition;%0A    %7D
 %0A%0A  

add file for chapter_002_2.9.2