コード例 #1
0
ファイル: NextStep.cs プロジェクト: Saplu/MyFirstGame
        public NextStep(List <Player> players)
        {
            var enemy1 = new CharacterClassLibrary.NPCClasses.Rabbit(1, 1);

            enemy1.Position = 5;
            var enemy2 = new CharacterClassLibrary.NPCClasses.Rabbit(1, 1);

            enemy2.Position = 6;
            Enemies         = new List <NPC>()
            {
                enemy1, enemy2
            };
            Players = new List <Player>();
            foreach (var player in players)
            {
                Players.Add(player);
            }
            foreach (var player in Players)
            {
                var numb = Players.IndexOf(player);
                player.Position = numb + 1;
            }
            Turn         = 1;
            Level        = 1;
            ActionsTaken = new List <int>();
            RewardTable  = new int[4] {
                100, 0, 0, 0
            };
            TransferTo = "Menu";
        }
コード例 #2
0
        public CastleThird(List <Player> players)
        {
            var Enemy1 = new CharacterClassLibrary.NPCClasses.FinalRabbit(10, 3);
            var Enemy2 = new CharacterClassLibrary.NPCClasses.Rabbit(9, 3, 1);

            Enemy2.Health = 10000;
            var Enemy3 = new CharacterClassLibrary.NPCClasses.Rabbit(9, 3, 1);

            Enemy3.Health = 1000;
            Enemies       = new List <NPC>()
            {
                Enemy1, Enemy2, Enemy3
            };
            foreach (var enemy in Enemies)
            {
                var numb = Enemies.IndexOf(enemy);
                enemy.Position = numb + 5;
            }
            Players = new List <Player>();
            foreach (var player in players)
            {
                Players.Add(player);
            }
            foreach (var player in Players)
            {
                var numb = Players.IndexOf(player);
                player.Position = numb + 1;
            }
            Turn        = 1;
            Level       = 9;
            RewardTable = new int[4] {
                0, 0, 0, 100
            };
            Logger = new Logger();
        }
コード例 #3
0
        public FirstChallenge(List <Player> players)
        {
            var enemy1 = new CharacterClassLibrary.NPCClasses.Rabbit(2, 1);
            var enemy2 = new CharacterClassLibrary.NPCClasses.Rabbit(2, 1);
            var enemy3 = new CharacterClassLibrary.NPCClasses.Rabbit(2, 1);
            var enemy4 = new CharacterClassLibrary.NPCClasses.Rabbit(2, 1);

            Enemies = new List <NPC>()
            {
                enemy1, enemy2, enemy3, enemy4
            };
            foreach (var enemy in Enemies)
            {
                var numb = Enemies.IndexOf(enemy);
                enemy.Position = numb + 5;
            }

            Players = new List <Player>();
            foreach (var player in players)
            {
                Players.Add(player);
            }
            foreach (var player in Players)
            {
                var numb = Players.IndexOf(player);
                player.Position = numb + 1;
            }
            Turn         = 1;
            Level        = 1;
            ActionsTaken = new List <int>();
            RewardTable  = new int[4] {
                75, 25, 0, 0
            };
            TransferTo = "Menu";
        }
コード例 #4
0
        public TankThat(List <Player> players)
        {
            var Enemy1 = new CharacterClassLibrary.NPCClasses.Goblin(3, 3);
            var Enemy2 = new CharacterClassLibrary.NPCClasses.Rabbit(3, 2);
            var Enemy3 = new CharacterClassLibrary.NPCClasses.Rabbit(3, 0);
            var Enemy4 = new CharacterClassLibrary.NPCClasses.Rabbit(3, 0);

            Enemies = new List <NPC>()
            {
                Enemy1, Enemy2, Enemy3, Enemy4
            };
            foreach (var enemy in Enemies)
            {
                var numb = Enemies.IndexOf(enemy);
                enemy.Position = numb + 5;
            }
            Players = new List <Player>();
            foreach (var player in players)
            {
                Players.Add(player);
            }
            foreach (var player in Players)
            {
                var numb = Players.IndexOf(player);
                player.Position = numb + 1;
            }
            Turn         = 1;
            Level        = 3;
            ActionsTaken = new List <int>();
            RewardTable  = new int[4] {
                10, 70, 20, 0
            };
            TransferTo = "Menu";
        }