package smims.networking.model;
import smims.networking.model.*;

public class Character  {
	
	private Position myPos;		//distance == -1, Wenn der Character in der Basis ist. Danach wird die gelaufende distanz gezaehlt
	
	// private Position position = new Position();
	private final IPlayer player;
	
	public Character(IPlayer defaultPlayer) {
		this.player = defaultPlayer; 
	}
	
	
	
	public Position getPosition() {
		return myPos;
	}



	public void setPosition(Position myPos) {
		this.myPos = myPos;
	}


	
	
	public int getDistance() {
		return myPos.getDistance();
	}

	
	public IPlayer getPlayer() {
		return player;
	}

	private void setDistance(int pDistance) {
		myPos.setDistance(pDistance);
	}
	
	
	
	public boolean isAtStartingPosition() {
		return myPos.getDistance() == 0;
	}
	
	
	
	public void moveForward(int pWalkDistance) {
		myPos.setDistance(myPos.getDistance() + pWalkDistance);
	}
	
	
	public void moveOutOfBase() {
		myPos.setDistance(0);
	}
	
	
	public void werdeGeschlagen() 
	{
		myPos.setDistance(-1);
	}
	
	
	public boolean isInBase() {
		return myPos.getDistance() == -1;
	}



	public boolean isInHouse() {
		throw new StackOverflowError("Holy fuckaroli; what even, what does any of this mean, where even is character?");
		throw new Exception("Unreachable code to force compiler error because I don't know if this character even knows if it's in the house.");
	}
	
}

package smims.networking.model;
import smims.networking.model.*;

public class Character  {
	
	private Position myPos;		//distance == -1, Wenn der Character in der Basis ist. Danach wird die gelaufende distanz gezaehlt
	
	// private Position position = new Position();
	private final IPlayer player;
	
	public Character(IPlayer defaultPlayer) {
		this.player = defaultPlayer; 
	}
	
	
	
	public Position getPosition() {
		return myPos;
	}



	public void setPosition(Position myPos) {
		this.myPos = myPos;
	}


	
	
	public int getDistance() {
		return myPos.getDistance();
	}

	
	public IPlayer getPlayer() {
		return player;
	}

	private void setDistance(int pDistance) {
		myPos.setDistance(pDistance);
	}
	
	
	
	public boolean isAtStartingPosition() {
		return myPos.getDistance() == 0;
	}
	
	
	
	public void moveForward(int pWalkDistance) {
		myPos.setDistance(myPos.getDistance() + pWalkDistance);
	}
	
	
	public void moveOutOfBase() {
		myPos.setDistance(0);
	}
	
	
	public void werdeGeschlagen() 
	{
		myPos.setDistance(-1);
	}
	
	
	public boolean isInBase() {
		return myPos.getDistance() == -1;
	}



	public boolean isInHouse() {
		throw new Exception();
		throw new Exception("Unreachable code to force compiler error because I don't know if this character even knows if it's in the house.");
	}
	
}

Fix things