-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
168 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ public interface IGameService { | |
|
||
ObjectProperty<IGameStateDTO> getGameState(); | ||
|
||
void sendMoveRequest(int id); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
common/src/main/java/org/schlunzis/kurtama/common/game/model/SquareTileDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.../src/main/java/org/schlunzis/kurtama/common/messages/game/client/AbstractGameRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.schlunzis.kurtama.common.messages.game.client; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import org.schlunzis.kurtama.common.messages.IClientMessage; | ||
|
||
import java.util.UUID; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public abstract class AbstractGameRequest implements IClientMessage { | ||
|
||
private final UUID gameID; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
common/src/main/java/org/schlunzis/kurtama/common/messages/game/client/MoveRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.schlunzis.kurtama.common.messages.game.client; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.UUID; | ||
|
||
@Getter | ||
public class MoveRequest extends AbstractGameRequest { | ||
|
||
private final int fieldIndex; | ||
|
||
public MoveRequest(UUID gameID, int fieldIndex) { | ||
super(gameID); | ||
this.fieldIndex = fieldIndex; | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
.../src/main/java/org/schlunzis/kurtama/common/messages/game/server/AbstractGameMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.schlunzis.kurtama.common.messages.game.server; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.schlunzis.kurtama.common.messages.IServerMessage; | ||
|
||
import java.util.UUID; | ||
|
||
@RequiredArgsConstructor | ||
public abstract class AbstractGameMessage implements IServerMessage { | ||
|
||
private final UUID gameID; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...c/main/java/org/schlunzis/kurtama/common/messages/game/server/UpdateGameStateMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.schlunzis.kurtama.common.messages.game.server; | ||
|
||
import lombok.Getter; | ||
import org.schlunzis.kurtama.common.game.model.IGameStateDTO; | ||
|
||
import java.util.UUID; | ||
|
||
@Getter | ||
public class UpdateGameStateMessage extends AbstractGameMessage { | ||
|
||
private final IGameStateDTO gameState; | ||
|
||
public UpdateGameStateMessage(UUID gameID, IGameStateDTO gameState) { | ||
super(gameID); | ||
this.gameState = gameState; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters