示例#1
0
    // 디버그 창 생성 시에 호출.
    public override void            createDebugWindow(dbwin.Window window)
    {
        this.window = window;

        /*window.createButton("다음")
         *      .setOnPress(() =>
         *      {
         *              switch(this.step.get_current()) {
         *
         *                      case STEP.VS_BOSS:
         *                      {
         *                              this.boss.causeVanish();
         *                      }
         *                      break;
         *
         *                      case STEP.CAKE_BIKING:
         *                      {
         *                              this.is_cake_time_over = true;
         *                      }
         *                      break;
         *
         *                      case STEP.RESULT:
         *                      {
         *                              this.is_result_done = true;
         *                      }
         *                      break;
         *              }
         *      });*/
    }
示例#2
0
    // アクティブなウインドウをセットする.
    public void             setActiveWindow(dbwin.Window window)
    {
        do
        {
            if (window == null)
            {
                this.active_window = null;
                break;
            }

            WindowResist resist = this.windows.Find(x => x.window == window);

            if (resist == null)
            {
                break;
            }

            if (this.active_window != null)
            {
                this.active_window.window.is_active = false;
                this.active_window = null;
            }

            this.active_window = resist;
        } while(false);
    }
示例#3
0
	// 디버그 창 생성 시에 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
		this.window = window;

		/*window.createButton("다음")
			.setOnPress(() =>
			{
				switch(this.step.get_current()) {

					case STEP.VS_BOSS:
					{
						this.boss.causeVanish();
					}
					break;

					case STEP.CAKE_BIKING:
					{
						this.is_cake_time_over = true;
					}
					break;

					case STEP.RESULT:
					{
						this.is_result_done = true;
					}
					break;
				}
			});*/
	}
示例#4
0
    protected float time_limit = 30.0f;                         // [sec] 제한시간(임시).

    // ================================================================ //

    // 디버그 창 생성 시 호출.
    public override void            createDebugWindow(dbwin.Window window)
    {
        window.createButton("케이크 타임 끝")
        .setOnPress(() =>
        {
            this.step.do_execution(this.time_limit);
        });
    }
示例#5
0
    // 创建窗口
    public dbwin.Window     createWindow(string title)
    {
        var window = new dbwin.Window(this.next_window_id, title);

        this.next_window_id++;

        this.resisterWindow(window);

        return(window);
    }
示例#6
0
    // ================================================================ //

    // 디버그 창 생성시에 호출.
    public override void            createDebugWindow(dbwin.Window window)
    {
        window.createButton("보스 쓰러뜨리기")
        .setOnPress(() =>
        {
            this.boss.causeVanish();
        });
        window.createButton("보스의 적 리스트 갱신")
        .setOnPress(() =>
        {
            this.boss.updateTargetPlayers();
        });
    }
示例#7
0
    //===================================================================

    // 디버그 창 생성 시에 호출.
    public override void            createDebugWindow(dbwin.Window window)
    {
        window.createButton("다음 플로어로")
        .setOnPress(() =>
        {
            switch (this.step.get_current())
            {
            case STEP.IN_ACTION:
                {
                    this.step.set_next(STEP.FINISH);
                }
                break;
            }
        });
    }
示例#8
0
 public virtual void             createDebugWindow(dbwin.Window window)
 {
 }                                                                                   // 디버그 창 생성시 호출.
    //===================================================================

    // 디버그 윈도 생성 시에 호출.
    public override void            createDebugWindow(dbwin.Window window)
    {
        window.createButton("클리어").setOnPress(() => { this.step.set_next(STEP.FINISH); });
    }
示例#10
0
	// 윈도 만들기.
	public dbwin.Window	createWindow(string title)
	{
		var		window = new dbwin.Window(this.next_window_id, title);

		this.next_window_id++;

		this.resisterWindow(window);

		return(window);
	}
示例#11
0
    // ================================================================ //

    // 디버그 창 생성 시 호출.
    public override void            createDebugWindow(dbwin.Window window)
    {
    }