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.
22 lines
415 B
22 lines
415 B
package de.fd.fh.server.game;
|
|
|
|
import de.fd.fh.server.user.UserId;
|
|
import dev.morphia.annotations.Embedded;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
@Getter
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
public class Figure
|
|
{
|
|
private Type type;
|
|
@Embedded
|
|
private UserId player;
|
|
|
|
public enum Type
|
|
{
|
|
KING, QUEEN, BISHOP, KNIGHT, ROOK, PAWN
|
|
}
|
|
}
|