|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CostDecider | |
---|---|
net.sf.freecol.common.model | Contains the game model. |
net.sf.freecol.common.model.pathfinding | Classes used when making searches on the map. |
Uses of CostDecider in net.sf.freecol.common.model |
---|
Methods in net.sf.freecol.common.model with parameters of type CostDecider | |
---|---|
PathNode |
Map.findPath(Unit unit,
Tile start,
Tile end,
CostDecider costDecider)
Finds a shortest path between the given tiles. |
PathNode |
Map.findPath(Unit unit,
Tile start,
Tile end,
Unit carrier,
CostDecider costDecider)
Finds a shortest path between the given tiles. |
PathNode |
Map.findPathToEurope(Unit unit,
Tile start,
CostDecider costDecider)
Finds the best path to Europe . |
PathNode |
Map.search(Tile startTile,
GoalDecider gd,
CostDecider costDecider,
int maxTurns)
Finds a path to a goal determined by the given GoalDecider . |
PathNode |
Map.search(Unit unit,
Tile startTile,
GoalDecider gd,
CostDecider costDecider,
int maxTurns)
Finds a path to a goal determined by the given GoalDecider . |
PathNode |
Map.search(Unit unit,
Tile startTile,
GoalDecider gd,
CostDecider costDecider,
int maxTurns,
Unit carrier)
Finds a path to a goal determined by the given GoalDecider . |
Uses of CostDecider in net.sf.freecol.common.model.pathfinding |
---|
Methods in net.sf.freecol.common.model.pathfinding that return CostDecider | |
---|---|
static CostDecider |
CostDeciders.avoidSettlements()
A CostDecider returning only
the cost of moving across the terrain (no additional
cost for blocking enemy units etc). |
static CostDecider |
CostDeciders.avoidSettlementsAndBlockingUnits()
A CostDecider for avoiding using tiles
which have blocking enemy units on them. |
static CostDecider |
CostDeciders.defaultFor(Unit unit)
Selects a default CostDecider for the given units. |
static CostDecider |
CostDeciders.numberOfTiles()
A CostDecider only considering
the number of tiles visited when determining the
cost. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |