Ejemplo n.º 1
0
        //Ensure we aren't fielding duplicates
        //public static String singleOpponent = "";
        //public static String tagOpponent = "";

        public static MatchSetting AddPlayers(bool entry, WrestlerID wrestlerNo, int slot, int control, bool isSecond, int costume, MatchSetting settings)
        {
            settings.matchWrestlerInfo[slot].entry = entry;

            if (entry)
            {
                settings.matchWrestlerInfo[slot].wrestlerID = wrestlerNo;
                settings.matchWrestlerInfo[slot].costume_no = costume;
                settings.matchWrestlerInfo[slot].alignment  = WrestlerAlignmentEnum.Neutral;

                //Determine what the assigned pad should be
                MenuPadKind controller;
                switch (control)
                {
                case 0:
                    settings.matchWrestlerInfo[slot].assignedPad = PadPort.AI;
                    controller = MenuPadKind.COM;
                    break;

                case 1:
                    settings.matchWrestlerInfo[slot].assignedPad = PadPort.Pad1;
                    controller = MenuPadKind.Pad1;
                    break;

                case 2:
                    settings.matchWrestlerInfo[slot].assignedPad = PadPort.Pad2;
                    controller = MenuPadKind.Pad2;
                    break;

                default:
                    settings.matchWrestlerInfo[slot].assignedPad = PadPort.AI;
                    controller = MenuPadKind.COM;
                    break;
                }

                settings.matchWrestlerInfo[slot].HP       = 65535f;
                settings.matchWrestlerInfo[slot].SP       = 65535f;
                settings.matchWrestlerInfo[slot].HP_Neck  = 65535f;
                settings.matchWrestlerInfo[slot].HP_Arm   = 65535f;
                settings.matchWrestlerInfo[slot].HP_Waist = 65535f;
                settings.matchWrestlerInfo[slot].HP_Leg   = 65535f;


                GlobalParam.Set_WrestlerData(slot, controller, wrestlerNo, isSecond, costume, 65535f, 65535f, 65535f, 65535f, 65535f, 65535f);
            }
            else
            {
                settings.matchWrestlerInfo[slot].wrestlerID = global::WrestlerID.Invalid;
                GlobalParam.Set_WrestlerData(slot, MenuPadKind.Invalid, global::WrestlerID.Invalid, false, 0, 65535f, 65535f, 65535f, 65535f, 65535f, 65535f);
            }
            return(settings);
        }
Ejemplo n.º 2
0
        public static void ActivateMember(int playerIndex)
        {
            Player plObj = PlayerMan.inst.GetPlObj(playerIndex);

            //Ensure that edits immediately enter a ready state.
            if (plObj.State != PlStateEnum.Stand && plObj.State != PlStateEnum.Performance && plObj.Zone == ZoneEnum.OutOfRing)
            {
                plObj.ChangeState(PlStateEnum.Stand);
            }

            plObj.hasRight = true;
            plObj.isSecond = false;
            plObj.isSleep  = false;

            //Ensure that player comes in fresh
            plObj.SetSP(65535f);
            plObj.SetHP(65535f);
            plObj.SetBP(65535f);

            //Determine ukemi bonus; based on player's spot on the team.
            switch (playerIndex)
            {
            case 1:
            case 5:
                plObj.UkeRecoveryPoint += 3840;
                break;

            case 2:
            case 6:
                plObj.UkeRecoveryPoint += 7680;
                break;

            case 3:
            case 7:
                plObj.UkeRecoveryPoint += 15360;
                break;

            default:
                break;
            }

            //Determine how they enter the ring
            plObj.isLose = false;
            plObj.SetPlayerController(PlayerControllerKind.AI);
            plObj.Start_ForceControl(global::ForceCtrlEnum.GoBackToRing);

            MatchWrestlerInfo wrestler = GlobalWork.inst.MatchSetting.matchWrestlerInfo[playerIndex];

            GlobalParam.Set_WrestlerData(playerIndex, padControls[playerIndex], wrestler.wrestlerID, false, wrestler.costume_no, 65535f, 65535f, 65535f, 65535f, 65535f, 65535f);
        }
Ejemplo n.º 3
0
        public static void ActivateMember(int playerIndex, CornerSide loserSide)
        {
            L.D("Activating player at index " + playerIndex + " for the side: " + loserSide);
            if (playerIndex == -1)
            {
                return;
            }

            Player plObj = PlayerMan.inst.GetPlObj(playerIndex);

            //Ensure that edits immediately enter a ready state.
            if (plObj.State != PlStateEnum.Stand && plObj.State != PlStateEnum.Performance && plObj.Zone == ZoneEnum.OutOfRing)
            {
                plObj.ChangeState(PlStateEnum.Stand);
            }

            plObj.hasRight = true;
            plObj.isSecond = false;
            plObj.isSleep  = false;


            //Ensure that player comes in fresh
            plObj.SetSP(65535f);
            plObj.SetHP(65535f);
            plObj.SetBP(65535f);

            //Determine how they enter the ring
            plObj.isLose = false;
            plObj.SetPlayerController(PlayerControllerKind.AI);
            plObj.Start_ForceControl(global::ForceCtrlEnum.GoBackToRing);

            //Determine if this is a player controlled team
            MenuPadKind controller = MenuPadKind.COM;

            if (loserSide == CornerSide.Blue)
            {
                if (MoreMatchTypes_Form.ExEliminationData.ControlBlue)
                {
                    controller = MenuPadKind.Pad1;
                }
                else
                {
                    controller = MenuPadKind.COM;
                }
            }
            else
            {
                //Ensure that we cover scenarios for two human players
                if (MoreMatchTypes_Form.ExEliminationData.ControlBlue &&
                    MoreMatchTypes_Form.ExEliminationData.ControlRed)
                {
                    controller = MenuPadKind.Pad2;
                }
                else if (MoreMatchTypes_Form.ExEliminationData.ControlRed)
                {
                    controller = MenuPadKind.Pad1;
                }
                else
                {
                    controller = MenuPadKind.COM;
                }
            }

            MatchWrestlerInfo wrestler = GlobalWork.inst.MatchSetting.matchWrestlerInfo[playerIndex];

            GlobalParam.Set_WrestlerData(playerIndex, controller, wrestler.wrestlerID, false, wrestler.costume_no, 65535f, 65535f, 65535f, 65535f, 65535f, 65535f);
        }