Example #1
0
        static void Main(string[] args)
        {
            var Djeeta = new Char.CharBase("ジータ", "ヒューマン", "女", 500, 20, 2);

            var Enemy = new Char.CharBase("コキュートス", "エネミー", "-", 1000, 40, 5);

            var Random            = new Random();
            int BehaviorSelection = 0;

            Boolean Game = false;

            do
            {
                LineView();
                Console.WriteLine("あなたのターンです。");
                Console.WriteLine(Djeeta.Info());
                Djeeta.TurnReset();
                Console.WriteLine("行動を入力してください / 1:攻撃 / 2:防御 / 3:回復");
                BehaviorSelection = InputLine();
                ActionBranch(Djeeta, Enemy, BehaviorSelection);

                LineView();

                Console.WriteLine("敵のターンです。");
                Console.WriteLine(Enemy.Info());
                Enemy.TurnReset();
                ActionBranch(Enemy, Djeeta, Random.Next(1, 3));

                Game = Djeeta.IsState();
                Game = Enemy.IsState();
            }while (!Game);
        }
Example #2
0
 private static Boolean IsEND(Char.CharBase @char)
 {
     return(@char.IsState());
 }