You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
386 B
20 lines
386 B
package de.fd.fh.server.game;
|
|
|
|
import de.fd.fh.server.user.UserId;
|
|
import dev.morphia.annotations.Embedded;
|
|
import lombok.Getter;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
@RequiredArgsConstructor
|
|
@Getter
|
|
public class Figure
|
|
{
|
|
private final Type type;
|
|
@Embedded
|
|
private final UserId player;
|
|
|
|
private enum Type
|
|
{
|
|
KING, QUEEN, BISHOP, KNIGHT, ROOK, PAWN
|
|
}
|
|
}
|