Commit 7475c871 authored by Mamadou Saliou DIALLO's avatar Mamadou Saliou DIALLO

create base of player and square classe's

parent c2a29129
package fr.univnantes.alma.model.player;
/**
* Single Creature game player.
*/
public class Creature extends Player{
}
package fr.univnantes.alma.model.player;
/**
* Single game player.
*/
public abstract class Player {
}
package fr.univnantes.alma.model.player;
/**
* Single Tracked game player.
*/
public class Tracked extends Player{
}
package fr.univnantes.alma.model.square;
/***
* Game board square.
*/
public abstract class Square {
/**
* Square position.
*/
private int position;
/**
* Create new instance of Square.
* @param position square position
*/
public Square(int position) {
this.position = position;
}
/**
* Return the position of the square.
* @return position of the square
*/
public int getPosition() {
return position;
}
}
package fr.univnantes.alma.model.square;
public class TrackedSquare extends Square{
/**
* Create new instance of Square.
*
* @param position square position
*/
public TrackedSquare(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