Commit d4fbef6c authored by Nathan Bonnemberger's avatar Nathan Bonnemberger

last commit before departing

parent 75a66acb
......@@ -85,9 +85,9 @@ public class JavascriptExecutor extends Executor {
@Override
public Variable<?> get(Variable<?> variable) {
variable.setValueFromObject(result);
if (LOGGER.isInfoEnabled()) {
LOGGER.info("Result {} = {}", variable.getName(), result); //$NON-NLS-1$
}
// if (LOGGER.isInfoEnabled()) {
// LOGGER.info("Result {} = {}", variable.getName(), result); //$NON-NLS-1$
// }
return variable;
}
......
......@@ -138,21 +138,19 @@ public final class PositionWidget extends StatefulWidget implements InformationP
@Override
public void actionDrop(TangibleObject tangibleObject) {
super.actionDrop(tangibleObject);
states.get(tangibleObject.getObjectId()).drop(new Point(tangibleObject.getX(), tangibleObject.getY(), tangibleObject.getAngle()));
this.variable.setValue(new Point(tangibleObject.getX(), tangibleObject.getY(), tangibleObject.getAngle()));
}
@Override
public void actionLift(TangibleObject tangibleObject) {
states.get(tangibleObject.getObjectId()).lift(new Point(tangibleObject.getX(), tangibleObject.getY(), tangibleObject.getAngle()));
this.variable.setValue(new Point(-1, -1, -1));
super.actionLift(tangibleObject);
this.variable.setValue(new Point(-1, -1, -1));
}
@Override
public void actionMove(TangibleObject tangibleObject) {
StateManager manager = states.get(tangibleObject.getObjectId());
super.actionMove(tangibleObject);
StateManager manager = states.get(tangibleObject.getObjectId());
// Point position = getPosition(tangibleObject.getObjectId());
// assert position != null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment