Coverage Summary for Class: Path (com.mygdx.game.AI)

Class Class, % Method, % Line, %
Path 100% (1/1) 75% (3/4) 83.3% (5/6)


1 package com.mygdx.game.AI; 2  3 import com.badlogic.gdx.ai.pfa.Connection; 4  5 /** 6  * The path that exists between 2 nodes not bidirectional 7  */ 8 public class Path implements Connection<Node> { 9  Node from; 10  Node to; 11  12  public Path(Node f, Node t) { 13  from = f; 14  to = t; 15  } 16  17  @Override 18  public float getCost() { 19  return to.cost; 20  } 21  22  @Override 23  public Node getFromNode() { 24  return from; 25  } 26  27  @Override 28  public Node getToNode() { 29  return to; 30  } 31 }