package com.gdxjam.ai.formation;

import com.badlogic.gdx.ai.fma.FormationMember;
import com.badlogic.gdx.ai.fma.SoftRoleSlotAssignmentStrategy.SlotCostProvider;
import com.badlogic.gdx.math.Vector2;

public class DistanceSlotCostProvider implements SlotCostProvider<Vector2>{

	@Override
	public float getCost (FormationMember<Vector2> member, int slotNumber) {
		boolean isCorrectSlot = slotNumber % 2 == 0;
		float cost = isCorrectSlot ? 0f : 10000f * 2;
		return cost + 1;
	}

	@Override
	public void calculateCosts() {
		// TODO Auto-generated method stub
		
	}

}

@@ -268,16 +268,17 @@
 Vector2%3E
+ 
 %7B%0A%0A%09@Ove
@@ -304,17 +304,16 @@
  getCost
- 
 (Formati
@@ -478,93 +478,6 @@
 %09%7D%0A%0A
-%09@Override%0A%09public void calculateCosts() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A
 %7D%0A

Revert previous commit