using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DxLibDLL;
/*
敵出現
技選択
選択したインデックスを相手側に送信
技選択通信待ち
行動
結果
マネージャー側でダメージとか持って置いて表示とか
*/
namespace DesignProject
{
partial class Scene
{
public void InitBattle()
{
this.sceneMenu.Add(new MenuManager(this));
this.sceneMenu[this.sceneMenu.Count - 1].menu.Add(
new Menu(
this.sceneMenu[this.sceneMenu.Count - 1],
(Menu menu) =>
{
if (menu.system.key.PushMoment(DX.KEY_INPUT_UP))
{
menu.cursorY -= 1;
if (menu.cursorY < 0)
{
menu.cursorY = 0;
}
}
if (menu.system.key.PushMoment(DX.KEY_INPUT_DOWN))
{
menu.cursorY += 1;
if (menu.cursorY >= 3)
{
menu.cursorY = 2;
}
}
if (menu.system.key.PushMoment(DX.KEY_INPUT_Z))
{
//zキー押したら次へ
if (system.host_f)//ホストなら
{//技選択へ
menu.system.scene.nextSceneID = 1;
}
else//クライアントなら
{//通信待ちへ
menu.system.scene.nextSceneID = 1;
}
}
if (menu.system.key.PushMoment(DX.KEY_INPUT_X))
{
//menu.cursorY = 2;
}
return;
},
(Menu menu) =>
{
DX.DrawString(320 - 45 + 10, 240 - 100 + 10, "戦闘開始", DX.GetColor(255, 0, 0));
system.battle.DrawState();
//DX.DrawString(320 - 45 + 10, 240 - 100 + 10, "TITLE", DX.GetColor(255, 0, 0));
//DX.DrawString(320 - 50 + 10, 240 + 10, "せつぞく", DX.GetColor(255, 255, 255));
//DX.DrawString(320 - 50 + 10, 240 + 40, "test2", DX.GetColor(255, 255, 255));
//DX.DrawString(320 - 50 + 10, 240 + 70, "おわる", DX.GetColor(255, 255, 255));
//DX.DrawBox(
// 320 - 90 + 5,
// 240 + 5 + menu.cursorY * 30,
// 320 - 90 + 160,
// 240 + 5 + menu.cursorY * 30 + 25,
// DX.GetColor(255, 255, 255),
// DX.FALSE
//);
return;
},
(Menu menu) =>
{
return;
}
)
);
}
}
}
最終更新:2011年01月17日 22:43