public void update(int time) { super.update(time); if (curStrategy != null) { curStrategy.apply(); // System.out.println("\n=====> " + curStrategy.toString()); } }
public void execute() { strategy.doSomething(); }