示例#1
0
        public override void stop()
        {
            // コピペでOK
            this.form.Close();
            this.form = null;

            // テスト用 コピペしないで
            this.bufForm = null;
            return;
        }
示例#2
0
        public override void start()
        {
            // ここでフォームを生成する
            // フォームのコンストラクタにCharacterInitializerを渡せるようにしないとキャラクターを掴んで移動できない
            // 本来は以下のような感じになる
            // this.form = new TestCharacter1Form(characterInitializer);
            this.form = this.bufForm = new TestCharacter1Form(characterInitializer);

            // ここはそのままでOK
            this.form.TopLevel = false;
            this.controller.Controls.Add(form);
            this.form.Show();
            this.form.Visible = true;
            this.form.BringToFront();

            // 画像のサイズによって適宜変更する必要あり
            this.form.Location = new System.Drawing.Point(290, 90);


            // テスト用 コピペしないで
            //this.bufForm = new TestCharacter1Form(characterInitializer);

            return;
        }