Ajouts minimes (Implémentation & ajout de la méthode play())
This commit is contained in:
parent
38af64cdf0
commit
c9380a229f
@ -1,7 +1,10 @@
|
||||
package fr.lnl.game.server.games;
|
||||
|
||||
import fr.lnl.game.server.games.grid.Grid;
|
||||
import fr.lnl.game.server.games.player.ComputerPlayer;
|
||||
import fr.lnl.game.server.games.player.Player;
|
||||
import fr.lnl.game.server.games.weapon.Firearm;
|
||||
import fr.lnl.game.server.utils.Point;
|
||||
|
||||
public class Game {
|
||||
|
||||
@ -17,6 +20,11 @@ public class Game {
|
||||
this.current_player = player_One;
|
||||
}
|
||||
|
||||
|
||||
public void play(){
|
||||
|
||||
}
|
||||
|
||||
public boolean isOver(){
|
||||
return players.length == 1;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ package fr.lnl.game.server.games.player;
|
||||
import fr.lnl.game.server.games.weapon.Weapon;
|
||||
import fr.lnl.game.server.utils.Point;
|
||||
|
||||
public class ComputerPlayer extends AbstractPlayer{
|
||||
public class ComputerPlayer extends AbstractPlayer implements Player{
|
||||
public ComputerPlayer(int id, Point position, int energy, Weapon weapon, boolean shieldDeploy) {
|
||||
super(id, position, energy, weapon, shieldDeploy);
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ package fr.lnl.game.server.games.player;
|
||||
import fr.lnl.game.server.games.weapon.Weapon;
|
||||
import fr.lnl.game.server.utils.Point;
|
||||
|
||||
public class HumanPlayer extends AbstractPlayer{
|
||||
public class HumanPlayer extends AbstractPlayer implements Player{
|
||||
public HumanPlayer(int id, Point position, int energy, Weapon weapon, boolean shieldDeploy) {
|
||||
super(id, position, energy, weapon, shieldDeploy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user