public override bool evaluate(GameState state)
 {
     return(left.evaluate(state) < right.evaluate(state));
 }
Пример #2
0
 public override IEnumerator execute(ExecutionContext context)
 {
     context.setNumber(name, value.evaluate(context.getGameState()));
     return(null);
 }
 public override double evaluate(GameState state)
 {
     return(-ofValue.evaluate(state));
 }
Пример #4
0
 public override double evaluate(GameState state)
 {
     return(left.evaluate(state) + right.evaluate(state));
 }