package hwo.kurjatturskat.model;

import hwo.kurjatturskat.core.message.carpositions.Lane;
import hwo.kurjatturskat.core.message.gameinit.TrackPieces;

/**
 * Tells in which track position we were in given game tick.
 * 
 */
public class TrackPosition {

    public final int gameTick;

    public final int pieceIndex;

    public final double inPieceDistance;

    public final Lane lane;

    private final TrackPieces trackPiece;

    public final double carAngle;

    public TrackPosition(int gameTick, int pieceIndex, double inPieceDistance,
            Lane lane, TrackPieces trackPiece, double carAngle) {
        this.gameTick = gameTick;
        this.pieceIndex = pieceIndex;
        this.inPieceDistance = inPieceDistance;
        this.lane = lane;
        this.trackPiece = trackPiece;
        this.carAngle = carAngle;
    }

    public TrackPieces getTrackPiece() {
        return trackPiece;
    }

}

@@ -908,10 +908,311 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString() %7B%0A        return String%0A                .format(%22gameTick%5B%25s%5D pieceIndex%5B%25s%5D inPieceDistance%5B%25s%5D lane%5B%25s%5D trackPiece%5B%25s%5D carAngle%5B%25s%5D%22,%0A                        gameTick, pieceIndex, inPieceDistance, lane,%0A                        trackPiece, carAngle);%0A    %7D%0A
 %7D%0A

Add toString