/** * 待機アニメーションを作成 * * @param duration * @return */ protected CCXAction createDelayTime(int duration) { CCXAction action = new CCXAction(); action.setActionType(ActionType.DELAY_TIME); action.setDuration(Util.roundSF(duration, 4)); return action; }
public void print(int i) { Util.print("x == " + x, i); Util.print("y == " + y, i); }
public void parse(Element parentElement) { Element element = (Element) parentElement.getElementsByTagName("Point").item(0); this.x = Util.getDouble(element, "x", 0.0); this.y = Util.getDouble(element, "y", 0.0); }