Beispiel #1
0
        void startTurn()
        {
            currentCharacter = allCharacters[turnCounter];
            //Combat.output(allCharacters[turnCounter].activateStatus());
            if (currentCharacter.team == "player")
            {
                Combat.output("Beginning turn of " + currentCharacter.Name + "...", bold: true, textColor: System.Drawing.Color.DodgerBlue);
            }
            else
            {
                Combat.output("Beginning turn of " + currentCharacter.Name + "...", bold: true, textColor: System.Drawing.Color.Firebrick);
            }
            currentCharacter.activateStatus("turn");
            currentCharacter.checkSkills();
            if (currentCharacter.behavior != null)
            {
                // Console.WriteLine("We see you are an AI "+currentCharacter.Name);
                currentCharacter.behavior.startAITurn(this);
                return;
            }
            mainForm.getSkills(currentCharacter);
            //activating all of the status, pass what turn step it is

            update();
        }