/* (non-Javadoc)
* @see tud.gamecontroller.game.jocular.ReasonerInterface#GetLegalMoves(tud.gamecontroller.game.jocular.State, tud.gamecontroller.game.Role)
*/
public synchronized Collection<? extends MoveInterface<Term>> getLegalMoves(ProofContext state, RoleInterface<Term> role) {
Iterable<GroundFact> legalFacts=stanfordlogicReasoner.getAllAnswersIterable(new VariableFact(parser.TOK_LEGAL, role.getTerm().getExpr(), TermVariable.makeTermVariable()), state);
Collection<MoveInterface<Term>> moveslist=new LinkedList<MoveInterface<Term>>();
for (GroundFact fact : legalFacts) {
moveslist.add(new Move<Term>(new Term(parser.getSymbolTable(), fact.getTerm(1))));
}
return moveslist;