public float getMovementCost ( Mover mover , int sx , int sy , int tx , int ty ) { this . mover = mover ; this . sourceX = sx ; this . sourceY = sy ; return map . getCost ( this , tx , ty ) ; }
Get the cost to move through a given location