コード例 #1
0
  /**
   * 待機アニメーションを作成
   *
   * @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;
  }
コード例 #2
0
 public void print(int i) {
   Util.print("x == " + x, i);
   Util.print("y == " + y, i);
 }
コード例 #3
0
 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);
 }