public SubStateTitleScreenMenu(StateAbstract parent)
            : base(parent)
        {
            StateHandler.SetDelay(0);
            messageBoxes = new MessageBox[1];
            colors = new Color[4];
            menu = new string[4];

            menu[0] = "New Game";
            menu[1] = "Continue";
            menu[2] = "Options";
            menu[3] = "Credits";

            colors[0] = Color.White;
            colors[1] = Color.DarkGray;
            colors[2] = Color.DarkGray;
            colors[3] = Color.DarkGray;

            mX = 400;
            mY = 550;
            width = 200;
            height = 120;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true);
        }
        public SubStateGameMenu(StateAbstract parent)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors = new Color[8];
            menu = new string[colors.Length];

            menu[0] = "Items";
            menu[1] = "Equip";
            menu[2] = "Rune";
            menu[3] = "Status";
            menu[4] = "Formation";
            menu[5] = "Party Order";
            menu[6] = "Return to Title";
            menu[7] = "Exit";

            for (int i = 1; i < colors.Length; i++)
                colors[i] = Color.DarkGray;
            colors[0] = Color.White;

            mX = 30;
            mY = 30;
            width = 960;
            height = 690;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
        public SubStateCombatMenu(StateAbstract parent)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors = new Color[4];
            menu = new string[4];

            menu[0] = "Attack";
            menu[1] = "Magic";
            menu[2] = "Items";
            menu[3] = "Defend";

            colors[0] = Color.White;
            colors[1] = Color.DarkGray;
            colors[2] = Color.DarkGray;
            colors[3] = Color.DarkGray;

            mX = 450;
            mY = 600;
            width = 185;
            height = 125;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true);
        }
        public SubStateGameMenu(StateAbstract parent) : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors       = new Color[8];
            menu         = new string[colors.Length];

            menu[0] = "Items";
            menu[1] = "Equip";
            menu[2] = "Rune";
            menu[3] = "Status";
            menu[4] = "Formation";
            menu[5] = "Party Order";
            menu[6] = "Return to Title";
            menu[7] = "Exit";

            for (int i = 1; i < colors.Length; i++)
            {
                colors[i] = Color.DarkGray;
            }
            colors[0] = Color.White;

            mX     = 30;
            mY     = 30;
            width  = 960;
            height = 690;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
        public SubStateStatusMenu(StateAbstract parent)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors = new Color[31];
            menu = new string[colors.Length];

            PC temp = null;
            for (int i = 0; i < 29; i += 10)
            {
                temp = StateHandler.GetPC(i / 10);
                menu[i] = temp.Name + " " + temp.getTitle();
                menu[i + 1] = temp.getExp() + @"/" + (temp.getLevel() * 1000);
                menu[i + 2] = "Level: " + temp.getLevel();
                menu[i + 3] = "Health: " + temp.Health + "/" + temp.MaxHealth;
                menu[i + 4] = "MP: " + temp.Mp + "/" + temp.MaxMp;
                menu[i + 5] = "Attack: " + temp.getAttack();
                menu[i + 6] = "Defense: " + temp.getDefense();
                menu[i + 7] = "Magic: " + temp.getMagic();
                menu[i + 8] = "Magic Defense: " + temp.getMagicDefense();
                menu[i + 9] = "";
            }
            menu[30] = "Formation: " + FormationHandler.FormName;

            for (int i = 0; i < colors.Length; i++)
                colors[i] = Color.White;

            mX = 30;
            mY = 30;
            width = 960;
            height = 690;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
Example #6
0
        public SubStateListMenuRune(StateAbstract parent, int thePC, int theSlot)
            : base(parent)
        {
            PCid = thePC;
            slot = theSlot;
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            int adjustedLen = ItemHandler.runeList.Count + 1;

            colors = new Color[adjustedLen];
            menu   = new string[adjustedLen];

            int i = 0;

            foreach (ItemAbstract item in ItemHandler.runeList)
            {
                colors[i] = Color.DarkGray;
                menu[i]   = item.Name;
                i++;
            }

            menu[i]   = "Unequip";
            colors[i] = Color.DarkGray;

            colors[0] = Color.White;

            mX     = 240;
            mY     = 75;
            width  = 660;
            height = 390;

            int tempVal = (int)(Globals.hmod * height);

            tempVal /= Globals.FONT_HEIGHT;

            tempVal -= 1;

            if (tempVal > adjustedLen)
            {
                tempVal = adjustedLen;
            }

            string[] tempMenu = new string[tempVal];

            for (i = 0; i < tempVal; i++)
            {
                tempMenu[i] = menu[i];
            }

            messageBoxes[0] = new MessageBox(mX, mY, width, height, tempMenu, colors, true, true, true);

            StateHandler.State = new SubStateRuneChange(this, PCid, slot, 0);
        }
Example #7
0
        public SubStateItemMenuCombat(StateAbstract theparent)
            : base(theparent)
        {
            absolute = false;
            parent   = theparent;
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];

            colors = new Color[ItemHandler.itemList.Count];
            menu   = new string[ItemHandler.itemList.Count];

            int i = 0;

            foreach (ConsumableAbstract item in ItemHandler.itemList)
            {
                colors[i] = Color.DarkGray;
                menu[i]   = item.getName();
                i++;
            }


            if (ItemHandler.itemList.Count > 0)
            {
                colors[0] = Color.White;
            }

            mX     = 100;
            mY     = 45;
            width  = 860;
            height = 590;

            int tempVal = (int)(Globals.hmod * height);

            tempVal /= Globals.FONT_HEIGHT;

            tempVal -= 1;

            if (tempVal > menu.Length)
            {
                tempVal = menu.Length;
            }

            string[] tempMenu = new string[tempVal];

            for (i = 0; i < tempVal; i++)
            {
                tempMenu[i] = menu[i];
            }

            messageBoxes[0] = new MessageBox(mX, mY, width, height, tempMenu, colors, true, true, true);
        }
        public SubStateListMenuRune(StateAbstract parent, int thePC, int theSlot)
            : base(parent)
        {
            PCid = thePC;
            slot = theSlot;
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            int adjustedLen = ItemHandler.runeList.Count + 1;
            colors = new Color[adjustedLen];
            menu = new string[adjustedLen];

            int i = 0;
            foreach (ItemAbstract item in ItemHandler.runeList)
            {
                colors[i] = Color.DarkGray;
                menu[i] = item.Name;
                i++;
            }

            menu[i] = "Unequip";
            colors[i] = Color.DarkGray;

            colors[0] = Color.White;

            mX = 240;
            mY = 75;
            width = 660;
            height = 390;

            int tempVal = (int)(Globals.hmod * height);

            tempVal /= Globals.FONT_HEIGHT;

            tempVal -= 1;

            if (tempVal > adjustedLen)
                tempVal = adjustedLen;

            string[] tempMenu = new string[tempVal];

            for (i = 0; i < tempVal; i++)
                tempMenu[i] = menu[i];

            messageBoxes[0] = new MessageBox(mX, mY, width, height, tempMenu, colors, true, true, true);

            StateHandler.State = new SubStateRuneChange(this, PCid, slot, 0);
        }
        public SubStateItemMenu(StateAbstract theparent)
            : base(theparent)
        {
            absolute = false;
            parent = theparent;
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];

            colors = new Color[ItemHandler.itemList.Count];
            menu = new string[ItemHandler.itemList.Count];

            int i = 0;
            foreach(ConsumableAbstract item in ItemHandler.itemList)
            {
                colors[i] = Color.DarkGray;
                menu[i] = item.getName();
                i++;
            }

            if (ItemHandler.itemList.Count > 0)
                colors[0] = Color.White;

            mX = 100;
            mY = 45;
            width = 860;
            height = 590;

            int tempVal = (int)(Globals.hmod * height);

            tempVal /= Globals.FONT_HEIGHT;

            tempVal -= 1;

            if (tempVal > menu.Length)
                tempVal = menu.Length;

            string[] tempMenu = new string[tempVal];

            for (i = 0; i < tempVal; i++)
                tempMenu[i] = menu[i];

            messageBoxes[0] = new MessageBox(mX, mY, width, height, tempMenu, colors, true, true, true);
        }
        public SubStateDisplayMessage(string[] toDisplay, int Height, int Width, int X, int Y, StateAbstract parent)
            : base(parent)
        {
            mX = X;
            mY = Y;
            height = Height;
            width = Width;
            messageBoxes = new MessageBox[1];
            size = new int[toDisplay.Length];
            colors = new Color[toDisplay.Length];

            for (int i = 0; i < toDisplay.Length; i++)
            {
                size[i] = 16;
                colors[i] = Color.White;
            }

            messageBoxes[0] = new MessageBox(mX, mY, width, height, toDisplay, colors, true);
        }
        public SubStateFeatureNotImplemented(StateAbstract parent)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors = new Color[1];
            menu = new string[1];

            menu[0] = "This feature is currently not working.";

            for (int i = 0; i < colors.Length; i++)
                colors[i] = Color.White;

            mX = 30;
            mY = 30;
            width = 960;
            height = 690;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
        public SubStateDisplayFormation(StateAbstract parent, int formation)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors = new Color[4];
            menu = new string[4];

            menu = setFormation(formation);

            for (int i = 1; i < colors.Length; i++)
                colors[i] = Color.DarkGray;

            colors[0] = Color.White;

            mX = 130;
            mY = 40;
            width = 0;
            height = 0;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
        public SubStateStatusMenu(StateAbstract parent)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors       = new Color[31];
            menu         = new string[colors.Length];

            PC temp = null;

            for (int i = 0; i < 29; i += 10)
            {
                temp        = StateHandler.GetPC(i / 10);
                menu[i]     = temp.Name + " " + temp.getTitle();
                menu[i + 1] = temp.getExp() + @"/" + (temp.getLevel() * 1000);
                menu[i + 2] = "Level: " + temp.getLevel();
                menu[i + 3] = "Health: " + temp.Health + "/" + temp.MaxHealth;
                menu[i + 4] = "MP: " + temp.Mp + "/" + temp.MaxMp;
                menu[i + 5] = "Attack: " + temp.getAttack();
                menu[i + 6] = "Defense: " + temp.getDefense();
                menu[i + 7] = "Magic: " + temp.getMagic();
                menu[i + 8] = "Magic Defense: " + temp.getMagicDefense();
                menu[i + 9] = "";
            }
            menu[30] = "Formation: " + FormationHandler.FormName;

            for (int i = 0; i < colors.Length; i++)
            {
                colors[i] = Color.White;
            }

            mX     = 30;
            mY     = 30;
            width  = 960;
            height = 690;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
        public SubStateFeatureNotImplemented(StateAbstract parent)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors       = new Color[1];
            menu         = new string[1];

            menu[0] = "This feature is currently not working.";


            for (int i = 0; i < colors.Length; i++)
            {
                colors[i] = Color.White;
            }

            mX     = 30;
            mY     = 30;
            width  = 960;
            height = 690;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
Example #15
0
        public SubStateCombatMenu(StateAbstract parent) : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors       = new Color[4];
            menu         = new string[4];

            menu[0] = "Attack";
            menu[1] = "Magic";
            menu[2] = "Items";
            menu[3] = "Defend";

            colors[0] = Color.White;
            colors[1] = Color.DarkGray;
            colors[2] = Color.DarkGray;
            colors[3] = Color.DarkGray;

            mX     = 450;
            mY     = 600;
            width  = 185;
            height = 125;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true);
        }
Example #16
0
        public SubStateTitleScreenMenu(StateAbstract parent) : base(parent)
        {
            StateHandler.SetDelay(0);
            messageBoxes = new MessageBox[1];
            colors       = new Color[4];
            menu         = new string[4];

            menu[0] = "New Game";
            menu[1] = "Continue";
            menu[2] = "Options";
            menu[3] = "Credits";

            colors[0] = Color.White;
            colors[1] = Color.DarkGray;
            colors[2] = Color.DarkGray;
            colors[3] = Color.DarkGray;

            mX     = 400;
            mY     = 550;
            width  = 200;
            height = 120;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true);
        }
        public SubStateDisplayFormation(StateAbstract parent, int formation)
            : base(parent)
        {
            StateHandler.AddDelay();
            messageBoxes = new MessageBox[1];
            colors       = new Color[4];
            menu         = new string[4];

            menu = setFormation(formation);

            for (int i = 1; i < colors.Length; i++)
            {
                colors[i] = Color.DarkGray;
            }

            colors[0] = Color.White;

            mX     = 130;
            mY     = 40;
            width  = 0;
            height = 0;

            messageBoxes[0] = new MessageBox(mX, mY, width, height, menu, colors, true, true);
        }
 internal SubStateAbstract(StateAbstract parent)
 {
     Parent = parent;
 }
 internal SubStateMessageBox(StateAbstract parent)
     : base(parent)
 {
 }
Example #20
0
 public static void changeState(StateAbstract newState)
 {
     state = newState;
 }
Example #21
0
 public static void initialize()
 {
     state = new StateEngineLogo();
 }
Example #22
0
 public static void changeState(StateAbstract newState)
 {
     state = newState;
 }
 public SubStateConfirmMessage(string[] toDisplay, int Height, int Width, int X, int Y, StateAbstract parent)
     : base(toDisplay, Height, Width, X, Y, parent)
 {
 }
Example #24
0
 public SubStateConfirmMessage(string[] toDisplay, int Height, int Width, int X, int Y, StateAbstract parent)
     : base(toDisplay, Height, Width, X, Y, parent)
 {
 }
 internal SubStateAbstract(StateAbstract parent)
 {
     Parent = parent;
 }
Example #26
0
 internal SubStateMessageBox(StateAbstract parent)
     : base(parent)
 {
 }
 public static void changeState(StateAbstract newState)
 {
     delay = 20;
     state = newState;
 }
 public SubStateDisplayMessage(MessageBoxInterface message, StateAbstract parent)
     : base(parent)
 {
     messageBoxes[0] = message;
 }
Example #29
0
        public SubStateDisplayMessage(string[] toDisplay, int Height, int Width, int X, int Y, StateAbstract parent) : base(parent)
        {
            mX           = X;
            mY           = Y;
            height       = Height;
            width        = Width;
            messageBoxes = new MessageBox[1];
            size         = new int[toDisplay.Length];
            colors       = new Color[toDisplay.Length];

            for (int i = 0; i < toDisplay.Length; i++)
            {
                size[i]   = 16;
                colors[i] = Color.White;
            }

            messageBoxes[0] = new MessageBox(mX, mY, width, height, toDisplay, colors, true);
        }
Example #30
0
 public SubStateDisplayMessage(MessageBoxInterface message, StateAbstract parent) : base(parent)
 {
     messageBoxes[0] = message;
 }
 public SubStateMenuAbstract(StateAbstract parent)
     : base(parent)
 {
 }
Example #32
0
 public static void changeState(StateAbstract newState)
 {
     delay = 20;
     state = newState;
 }
 public static void initialize()
 {
     state = new StateEngineLogo();
 }
 public SubStateMenuAbstract(StateAbstract parent)
     : base(parent)
 {
 }