fix java shit
This commit is contained in:
42
Reversi/reversi/model/Field.java
Normal file
42
Reversi/reversi/model/Field.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package reversi.model;
|
||||
|
||||
/**
|
||||
* Class for a reversi field.
|
||||
*/
|
||||
public class Field {
|
||||
|
||||
/**
|
||||
* <code>Row</code> of the field.
|
||||
*/
|
||||
private int row;
|
||||
|
||||
/**
|
||||
* <code>Column</code> of the field.
|
||||
*/
|
||||
private int col;
|
||||
|
||||
/**
|
||||
* Constructs a new field.
|
||||
*
|
||||
* @param row row of the field
|
||||
* @param col column of the field
|
||||
*/
|
||||
public Field(final int row, final int col) {
|
||||
this.row = row;
|
||||
this.col = col;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @return The row of the field.
|
||||
*/
|
||||
public final int row() {
|
||||
return row;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @return the column of the field.
|
||||
*/
|
||||
public final int col() {
|
||||
return col;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user