JSON serial change & working basic gameplay
This commit is contained in:
@@ -2,6 +2,8 @@ package gltronic.tronio.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
@@ -9,13 +11,20 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Player {
|
||||
private double x;
|
||||
private double y;
|
||||
private double angle;
|
||||
private double targetAngle;
|
||||
private ArrayList<Wall> walls;
|
||||
private int lastWall;
|
||||
|
||||
private String color;
|
||||
|
||||
private double x;
|
||||
|
||||
private double y;
|
||||
|
||||
private double angle;
|
||||
|
||||
private double targetAngle;
|
||||
|
||||
private ArrayList<Wall> walls;
|
||||
|
||||
private int lastWall;
|
||||
}
|
||||
Reference in New Issue
Block a user