private void Victory()
        {
            won = true;
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[2];
            colors[0] = Color.White;
            colors[1] = Color.White;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            int exp = getExp();

            string[] attackMessage = new string[2];
            attackMessage[0] = "Victory!!";
            attackMessage[1] = "You have earned " + exp + " Exp!";

            for (int i = 0; i < 3; i++)
            {
                StateHandler.GetPC(i).addExp(exp);
            }

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;

            ItemFactory.combatGenerate(MonsterList[0].Element, StateHandler.Level, MonsterList[0].Quality, MonsterList[0].Boss, "");
        }
        public override void action(Monster parent)
        {
            if (!charged)
            {
                MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
                Color[] colors = new Color[1];
                colors[0] = Color.White;

                int mX     = 400;
                int mY     = 100;
                int height = 100;
                int width  = 345;

                string[] attackMessage = new string[1];
                attackMessage[0] = "IMA CHARGIN MAH LASERS!";

                charged = true;

                SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
                StateHandler.State = temp;
            }
            else if (charged)
            {
                charged = false;
                MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
                Color[] colors = new Color[1];
                colors[0] = Color.White;

                int mX     = 400;
                int mY     = 100;
                int height = 100;
                int width  = 345;

                string[] attackMessage = new string[1];
                attackMessage[0] = "IMA FIRIN MAH LASERS!";

                SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
                StateHandler.State = temp;

                int choice = Globals.Random(0, 3);

                int bonus = 1000;

                if (PCBuilder.getPC(choice).IsDefending())
                {
                    bonus = 0;
                }

                parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_FIRE, "LASERS", bonus);
            }
        }
        public override void action(Monster parent)
        {
            if (!charged)
            {
                MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
                Color[] colors = new Color[1];
                colors[0] = Color.White;

                int mX = 400;
                int mY = 100;
                int height = 100;
                int width = 345;

                string[] attackMessage = new string[1];
                attackMessage[0] = "IMA CHARGIN MAH LASERS!";

                charged = true;

                SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
                StateHandler.State = temp;
            }
            else if (charged)
            {
                charged = false;
                MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
                Color[] colors = new Color[1];
                colors[0] = Color.White;

                int mX = 400;
                int mY = 100;
                int height = 100;
                int width = 345;

                string[] attackMessage = new string[1];
                attackMessage[0] = "IMA FIRIN MAH LASERS!";

                SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
                StateHandler.State = temp;

                int choice = Globals.Random(0, 3);

                int bonus = 1000;

                if (PCBuilder.getPC(choice).IsDefending())
                    bonus = 0;

                parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_FIRE, "LASERS", bonus);
            }
        }
        internal void setDefend(bool flag)
        {
            this.defending = flag;

            if (flag)
            {
                MessageBoxInterface[] info = new MessageBoxInterface[1];
                Color[]  colors            = new Color[1];
                string[] status            = new string[1];

                status[0] = Name + " is now defending!";
                colors[0] = Color.White;

                SubStateAbstract message = new SubStateConfirmMessage(status, 50, 400, 350, 450, StateHandler.State);
                StateHandler.State = message;
            }
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.White;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "IMA FIRIN MAH LASER!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_PHYSICAL, "cowabunga", 0);
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.White;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "Water Attack!";

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_WATER, "water attack", 0);
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.Crimson;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "FLAME STORM!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_FIRE, "flame storm", 50);
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.CornflowerBlue;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "HURRICANE!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_WATER, "hurricane", 40);
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.White;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "Nature attack 2.0?";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_NATURE, "nature", 20);
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.White;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "IMA FIRIN MAH LASER!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_PHYSICAL, "cowabunga", 0);
        }
Beispiel #11
0
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.Crimson;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "FLAME STORM!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_FIRE, "flame storm", 50);
        }
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.White;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "MOTHER FREAKN NATURE!!!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_NATURE, "nature", 75);
        }
Beispiel #13
0
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.White;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "Water Attack!";

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_WATER, "water attack", 0);
        }
Beispiel #14
0
        public override void action(Monster parent)
        {
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[1];
            colors[0] = Color.CornflowerBlue;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[1];
            attackMessage[0] = "HURRICANE!";

            SubStateConfirmMessage temp = new SubStateConfirmMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;

            parent.Attack(BehaviorRSTS.acquireTarget(), Globals.ELEMENT_WATER, "hurricane", 40);
        }
        private void Defeat()
        {
            lost = true;
            StateAbstract title = new StateTitleScreen();

            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[2];
            colors[0] = Color.White;
            colors[1] = Color.White;

            int mX     = 400;
            int mY     = 100;
            int height = 100;
            int width  = 345;

            string[] attackMessage = new string[2];
            attackMessage[0] = "Game Over!!";
            attackMessage[1] = "The Flying Spaghetti Code Monster has triumphed!";

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);

            StateHandler.State = temp;
        }
Beispiel #16
0
        private void Defeat()
        {
            lost = true;
            StateAbstract title = new StateTitleScreen();

            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[2];
            colors[0] = Color.White;
            colors[1] = Color.White;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            string[] attackMessage = new string[2];
            attackMessage[0] = "Game Over!!";
            attackMessage[1] = "The Flying Spaghetti Code Monster has triumphed!";

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;
        }
Beispiel #17
0
        private void Victory()
        {
            won = true;
            MessageBoxInterface[] messageBoxes = new MessageBoxInterface[1];
            Color[] colors = new Color[2];
            colors[0] = Color.White;
            colors[1] = Color.White;

            int mX = 400;
            int mY = 100;
            int height = 100;
            int width = 345;

            int exp = getExp();

            string[] attackMessage = new string[2];
            attackMessage[0] = "Victory!!";
            attackMessage[1] = "You have earned " + exp + " Exp!";

            for (int i = 0; i < 3; i++)
                StateHandler.GetPC(i).addExp(exp);

            SubStateDisplayMessage temp = new SubStateDisplayMessage(attackMessage, height, width, mX, mY, StateHandler.State);
            StateHandler.State = temp;

            ItemFactory.combatGenerate(MonsterList[0].Element, StateHandler.Level, MonsterList[0].Quality, MonsterList[0].Boss, "");
        }
Beispiel #18
0
 public SubStateDisplayMessage(MessageBoxInterface message, StateAbstract parent) : base(parent)
 {
     messageBoxes[0] = message;
 }
Beispiel #19
0
        internal void setDefend(bool flag)
        {
            this.defending = flag;

            if (flag)
            {
                MessageBoxInterface[] info = new MessageBoxInterface[1];
                Color[] colors = new Color[1];
                string[] status = new string[1];

                status[0] = Name + " is now defending!";
                colors[0] = Color.White;

                SubStateAbstract message = new SubStateConfirmMessage(status, 50, 400, 350, 450, StateHandler.State);
                StateHandler.State = message;
            }
        }
 public SubStateDisplayMessage(MessageBoxInterface message, StateAbstract parent)
     : base(parent)
 {
     messageBoxes[0] = message;
 }