Commit dcc32881 authored by dkonam's avatar dkonam

fix bug

parent 5dfa4062
......@@ -515,4 +515,10 @@ public class DataFacade implements IDataCom, IDataIHMTable, IDataIHMMain {
public void receivePublicUserProfile(PublicUser profile) {
//this.ihmMainFacade.receivePublicUserProfile(profile);
}
@Override
public void gameConnectionRequestGame(String id, String role) {
this.gameMediator.gameConnectionRequestGame(id, role);
}
}
......@@ -32,6 +32,8 @@ public interface IDataIHMMain {
public List<String> getIPDiscovery();
public void setIPDiscovery(List<String> discoveryNodes) throws DataException;
public void gameConnectionRequestGame(String id, String role);
}
......@@ -146,6 +146,7 @@ public class GameMediator {
if(this.dataFacade.getComfacade()!=null)
{
//TODO notify network that the player is ready (all ships initialized
// this.dataFacade.getComfacade().sendShipsToEnnemy(player.getShips(), player.getLightPublicUser());
}
}
......@@ -176,4 +177,12 @@ public class GameMediator {
}
public void gameConnectionRequestGame(String id, String role) {
if(this.dataFacade.getComfacade()!=null)
{
//this.dataFacade.getComfacade().connectionToGame(game);
}
}
}
......@@ -12,6 +12,7 @@ package com.utclo23.data.structure;
public class Mine extends Event {
private Player owner;
private Coordinate coord;
private MineResult result;
/**
* constructor
......@@ -22,7 +23,15 @@ public class Mine extends Event {
{
this.owner = owner;
this.coord = coord;
this.result = MineResult.UNKNOWN;
}
public MineResult getResult() {
return result;
}
public void setResult(MineResult result) {
this.result = result;
}
/**
......
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.utclo23.data.structure;
/**
*
* @author Davy
*/
public enum MineResult {
SUCCESS, FAILURE, UNKNOWN
}
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