Commit 2c12a00c authored by Mamadou Saliou DIALLO's avatar Mamadou Saliou DIALLO

feat: create square classes.

Create following classes: VictorySquare, TrackedSquare
and CreatureSquare.
parent 0b463bd3
package fr.univnantes.alma.model.square;
/**
* Creature square class.
*/
public class CreatureSquare extends Square {
/**
* Create new instance of Creature Square.
*
* @param position square position
*/
public CreatureSquare(final int position) {
super(position);
}
}
......@@ -12,10 +12,10 @@ public abstract class Square {
/**
* Create new instance of Square.
* @param position square position
* @param squarePosition square position
*/
public Square(int position) {
this.position = position;
public Square(final int squarePosition) {
this.position = squarePosition;
}
/**
......
package fr.univnantes.alma.model.square;
public class TrackedSquare extends Square{
/**
* Track square class.
*/
public class TrackSquare extends Square {
/**
* Create new instance of Square.
* Create new instance of track Square.
*
* @param position square position
*/
public TrackedSquare(int position) {
public TrackSquare(final int position) {
super(position);
}
}
package fr.univnantes.alma.model.square;
/**
* Victory square class.
*/
public class VictorySquare extends Square {
/**
* Create new instance of Victory Square.
*
* @param position square position
*/
public VictorySquare(final int position) {
super(position);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment