public class GoalFactory
extends java.lang.Object
Constructor and Description |
---|
GoalFactory(int turnCount)
Initializes the GoalFactory
|
Modifier and Type | Method and Description |
---|---|
Goal |
CreateRandomGoal()
Creates a new random Goal.
|
Goal |
generateAbsoluteGoal(int difficulty)
Generates a new absolute goal using goal generation algorithm.
|
Goal |
generateGoal(int difficulty)
Generates either a quantifiable or absolute goal with odds 6:4 - absolute:quantifiable.
|
Goal |
generateQuantifiableGoal(int difficulty)
Generates a new quantifiable goal using goal generation algorithm an djikstras algorithm.
|
public final int EASY
public final int MEDIUM
public final int HARD
public Goal CreateRandomGoal()
public Goal generateAbsoluteGoal(int difficulty)
difficulty
- EASY, MEDIUM or HARD constants should be usedpublic Goal generateQuantifiableGoal(int difficulty)
difficulty
- EASY, MEDIUM or HARD constants should be usedpublic Goal generateGoal(int difficulty)
difficulty
- EASY, MEDIUM or HARD constants should be used.