Der CommandSend will den server/client einfach nicht als
TransmitterInterface fressen aber sonst sollte es klappen
This commit is contained in:
parent
6642dc8179
commit
a4a45ed5f2
@ -49,7 +49,12 @@ public class CommandSend implements CommandInterface
|
||||
{
|
||||
lg.info("wir sind drin");
|
||||
Figur aktuelleFigur = model.getFiguren().getLast();
|
||||
transmitterInterface.send(aktuelleFigur);
|
||||
if(transmitterInterface != null){
|
||||
transmitterInterface.send(aktuelleFigur);
|
||||
}
|
||||
else{
|
||||
lg.info("Der Transmitter ist immernoch null");
|
||||
}
|
||||
//ToDo in dieser methode muss die Figur serialisiert werden und zum
|
||||
//übermitteln bereitgestellt werden
|
||||
|
||||
@ -70,4 +75,15 @@ public class CommandSend implements CommandInterface
|
||||
public void undo()
|
||||
{
|
||||
}
|
||||
|
||||
void setTransmitter(TransmitterInterface transmitter) {
|
||||
lg.info("Transmitter wird gesetzt");
|
||||
if(transmitter != null){
|
||||
this.transmitterInterface = transmitter;
|
||||
|
||||
}
|
||||
else{
|
||||
lg.info("der transmitter kommt hier als null an");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user