tar dur, jws demotivant

This commit is contained in:
Gu://em_ 2026-04-04 22:25:16 +02:00
parent e1301f007b
commit b3bdec1049
14 changed files with 65 additions and 11 deletions

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
public class YakamonAction {

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api.request;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
public class StartGameRequest {

View file

@ -1,8 +1,10 @@
package fr.epita.assistants.yakamon.presentation.api.request;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class TeamFeedRequest {
public Integer quantity;

View file

@ -1,8 +1,10 @@
package fr.epita.assistants.yakamon.presentation.api.request;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class TeamRenameRequest {
public String newNickname;

View file

@ -2,21 +2,37 @@ package fr.epita.assistants.yakamon.presentation.api.response;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class GetInventoryResponse {
public class ItemType {
public String type;
public String value;
public ItemType() {}
public ItemType(String type, String value) {
this.type = type;
this.value = value;
}
}
public class Items {
public ItemType itemType;
public Integer quantity;
public Items() {}
public Items(ItemType itemType, Integer quantity) {
this.itemType = itemType;
this.quantity = quantity;
}
}
List<Items> items;
public List<Items> items;
}

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
import lombok.NoArgsConstructor;
@NoArgsConstructor
public class PlayerCatchResponse extends YakamonAction {
public PlayerCatchResponse(

View file

@ -3,20 +3,36 @@ package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.utils.tile.ItemType;
import fr.epita.assistants.yakamon.utils.tile.TerrainType;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class PlayerCollectResponse {
public class TileType {
public class Collectible {
ItemType type;
String value;
public ItemType type;
public String value;
public Collectible() {}
public Collectible(ItemType type, String value) {
this.type = type;
this.value = value;
}
}
TerrainType terrainType;
Collectible collectible;
public TerrainType terrainType;
public Collectible collectible;
public TileType() {}
public TileType(TerrainType terrainType, Collectible collectible) {
this.terrainType = terrainType;
this.collectible = collectible;
}
}
public TileType tileType;

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api.response;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
public class PlayerInfosResponse {
@ -10,7 +12,7 @@ public class PlayerInfosResponse {
public Integer posX;
public Integer posY;
public String lastMove;
public String lastCatch;
public String lastCollect;
public String lastCatch;
public String lastFeed;
}

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
import lombok.NoArgsConstructor;
@NoArgsConstructor
public class TeamEvolveResponse extends YakamonAction {
public TeamEvolveResponse(

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
import lombok.NoArgsConstructor;
@NoArgsConstructor
public class TeamFeedResponse extends YakamonAction {
public TeamFeedResponse(

View file

@ -2,9 +2,11 @@ package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class TeamInfosResponse {
YakamonAction[] yakamons;
public YakamonAction[] yakamons;
}

View file

@ -1,7 +1,9 @@
package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.presentation.api.YakamonAction;
import lombok.NoArgsConstructor;
@NoArgsConstructor
public class TeamRenameResponse extends YakamonAction {
public TeamRenameResponse(

View file

@ -2,9 +2,11 @@ package fr.epita.assistants.yakamon.presentation.api.response;
import fr.epita.assistants.yakamon.presentation.api.YakadexEntry;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
public class YakadexAllInfosResponse {
YakadexEntry[] entries;
public YakadexEntry[] entries;
}

View file

@ -123,12 +123,12 @@ public class PlayerResource {
player.lastMove != null
? player.lastMove.format(formatter)
: null,
player.lastCatch != null
? player.lastCatch.format(formatter)
: null,
player.lastCollect != null
? player.lastCollect.format(formatter)
: null,
player.lastCatch != null
? player.lastCatch.format(formatter)
: null,
player.lastFeed != null
? player.lastFeed.format(formatter)
: null