예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            //-----------------------------------------------------------------
            MainPlaceInfo  mainPlaceInfo  = new MainPlaceInfo();
            MainFightPlace mainFightPlace = new MainFightPlace();

            CardGroup cardGroupA = new CardGroup();
            CardGroup cardGroupB = new CardGroup();

            HandCardController handCardControllerA = new HandCardController();
            HandCardController handCardControllerB = new HandCardController();

            Grave grave1 = new Grave();
            Grave grave2 = new Grave();

            Info infoA = new Info();
            Info infoB = new Info();

            InfoForm infoFormA = new InfoForm();
            InfoForm infoFormB = new InfoForm();

            CardGroupForm cardgroupFormA = new CardGroupForm();
            CardGroupForm cardgroupFormB = new CardGroupForm();

            Player player1 = new Player("刀客塔暮狗蛋");
            Player player2 = new Player("没名字的");

            mainFightPlace.MainPlace_Info = mainPlaceInfo;
            mainPlaceInfo.MainFightPlace  = mainFightPlace;

            mainPlaceInfo.Player1 = player1;
            player1.MainPlaceInfo = mainPlaceInfo;
            mainPlaceInfo.Player2 = player2;
            player2.MainPlaceInfo = mainPlaceInfo;

            player1.OpPlayer = player2;
            player2.OpPlayer = player1;

            player1.CardGroup = cardGroupA;
            cardGroupA.Player = player1;
            player2.CardGroup = cardGroupB;
            cardGroupB.Player = player2;


            player1.HandCardController = handCardControllerA;
            handCardControllerA.Player = player1;
            player2.HandCardController = handCardControllerB;
            handCardControllerB.Player = player2;


            player1.Grave = grave1;
            grave1.Player = player1;
            player2.Grave = grave2;
            grave2.Player = player2;


            player1.Info = infoA;
            infoA.Player = player1;
            player2.Info = infoB;
            infoB.Player = player2;


            player1.InfoForm = infoFormA;
            infoFormA.Player = player1;
            player2.InfoForm = infoFormB;
            infoFormB.Player = player2;


            player1.CardGroupForm = cardgroupFormA;
            cardgroupFormA.Player = player1;
            player2.CardGroupForm = cardgroupFormB;
            cardgroupFormB.Player = player2;


            //---------------------------------------------------------
            //我方牌组
            List <Card> cardList_SetA = new List <Card>();

            cardList_SetA.Add(new Mon_Bird());
            cardList_SetA.Add(new Mon_Bird());
            cardList_SetA.Add(new Mon_Bird());
            cardList_SetA.Add(new Mon_Cat());
            cardList_SetA.Add(new Mon_Cat());
            cardList_SetA.Add(new Mon_Cat());
            cardList_SetA.Add(new Mon_Dog());
            cardList_SetA.Add(new Mon_Dog());
            cardList_SetA.Add(new Mon_Dog());
            cardList_SetA.Add(new Mon_Dog());
            cardGroupA.GetCardGroup(cardList_SetA);
            //----------------------------------------------------------
            //对方牌组
            List <Card> cardList_SetB = new List <Card>();

            cardList_SetB.Add(new Mon_Bird());
            cardList_SetB.Add(new Mon_Bird());
            cardList_SetB.Add(new Mon_Bird());
            cardList_SetB.Add(new Mon_Cat());
            cardList_SetB.Add(new Mon_Cat());
            cardList_SetB.Add(new Mon_Cat());
            cardList_SetB.Add(new Mon_Dog());
            cardList_SetB.Add(new Mon_Dog());
            cardList_SetB.Add(new Mon_Dog());
            cardList_SetB.Add(new Mon_Dog());
            cardGroupB.GetCardGroup(cardList_SetB);
            //----------------------------------------------------------

            //----------------------------------------------------------

            Application.Run(mainFightPlace);
        }
예제 #2
0
 public MainFightPlace(MainPlaceInfo m)
 {
     this.MainPlace_Info = m;
     act += nothing;
     InitializeComponent();
 }
예제 #3
0
 public ParentForm(MainPlaceInfo m)
 {
     this.MainPlaceInfo = m;
     InitializeComponent();
 }
예제 #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            //-----------------------------------------------------------------



            MainPlaceInfo mainPlaceInfo = new MainPlaceInfo();
            ParentForm    parentForm    = new ParentForm(mainPlaceInfo);
            Player        player1       = new Player("刀客塔暮狗蛋");
            Player        player2       = new Player("没名字的");

            mainPlaceInfo.ParentForm = parentForm;
            mainPlaceInfo.Player1    = player1;
            player1.MainPlaceInfo    = mainPlaceInfo;
            mainPlaceInfo.Player2    = player2;
            player2.MainPlaceInfo    = mainPlaceInfo;
            player1.OpPlayer         = player2;
            player2.OpPlayer         = player1;

            //弃用代码
            {
                //MainFightPlace mainFightPlace = new MainFightPlace();

                /*TriggerAndCatch triggerAndCatch = new TriggerAndCatch();
                 *
                 * ProcessSelectForm processSelectForm1 = new ProcessSelectForm();
                 * ProcessSelectForm processSelectForm2 = new ProcessSelectForm();
                 *
                 * CardGroup cardGroupA = new CardGroup();
                 * CardGroup cardGroupB = new CardGroup();
                 *
                 * HandCardController handCardControllerA = new HandCardController();
                 * HandCardController handCardControllerB = new HandCardController();
                 *
                 * Grave grave1 = new Grave();
                 * Grave grave2 = new Grave();
                 *
                 * ExceptionPlace exceptionPlace1 = new ExceptionPlace();
                 * ExceptionPlace exceptionPlace2 = new ExceptionPlace();
                 *
                 * Info infoA = new Info();
                 * Info infoB = new Info();
                 *
                 * InfoForm infoFormA = new InfoForm();
                 * InfoForm infoFormB = new InfoForm();
                 *
                 * CardGroupForm cardgroupFormA = new CardGroupForm();
                 * CardGroupForm cardgroupFormB = new CardGroupForm();*/



                /*parentForm.MainFightPlace = mainFightPlace;
                 * mainPlaceInfo.ParentForm = parentForm;
                 *
                 * mainFightPlace.MainPlace_Info = mainPlaceInfo;
                 * mainPlaceInfo.MainFightPlace = mainFightPlace;*/



                /*exceptionPlace1.Player = player1;
                 * player1.ExceptionPlace = exceptionPlace1;
                 * exceptionPlace2.Player = player2;
                 * player2.ExceptionPlace = exceptionPlace2;
                 *
                 * player1.ProcessSelectForm = processSelectForm1;
                 * processSelectForm1.Player = player1;
                 * player2.ProcessSelectForm = processSelectForm2;
                 * processSelectForm2.Player = player2;
                 *
                 * player1.CardGroup = cardGroupA;
                 * cardGroupA.Player = player1;
                 * player2.CardGroup = cardGroupB;
                 * cardGroupB.Player = player2;
                 *
                 *
                 * player1.HandCardController = handCardControllerA;
                 * handCardControllerA.Player = player1;
                 * player2.HandCardController = handCardControllerB;
                 * handCardControllerB.Player = player2;
                 *
                 *
                 * player1.Grave = grave1;
                 * grave1.Player = player1;
                 * player2.Grave = grave2;
                 * grave2.Player = player2;
                 *
                 *
                 * player1.Info = infoA;
                 * infoA.Player = player1;
                 * player2.Info = infoB;
                 * infoB.Player = player2;
                 *
                 *
                 * player1.InfoForm = infoFormA;
                 * infoFormA.Player = player1;
                 * player2.InfoForm = infoFormB;
                 * infoFormB.Player = player2;
                 *
                 *
                 * player1.CardGroupForm = cardgroupFormA;
                 * cardgroupFormA.Player = player1;
                 * player2.CardGroupForm = cardgroupFormB;
                 * cardgroupFormB.Player = player2;*/
            }

            //---------------------------------------------------------
            //我方牌组
            List <Card> cardList_SetA = new List <Card>();

            cardList_SetA.Add(new Mgc_futejia());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Mon_Bird());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Mgc_futejia());
            cardList_SetA.Add(new Pit_shenpanlvling());
            cardList_SetA.Add(new Pit_shenpanlvling());
            cardList_SetA.Add(new Mon_Dog());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Pit_kaqiusha());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Pit_kaqiusha());
            player1.CardGroup.GetCardGroup(cardList_SetA);
            //----------------------------------------------------------
            //对方牌组
            List <Card> cardList_SetB = new List <Card>();

            cardList_SetB.Add(new Mgc_futejia());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Mon_Bird());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetB.Add(new Pit_shenpanlvling());
            cardList_SetB.Add(new Mgc_huolang());
            cardList_SetB.Add(new Mon_Cat());
            cardList_SetB.Add(new Pit_shenpanlvling());
            cardList_SetB.Add(new Mon_jimolenghuakai());
            cardList_SetB.Add(new Mgc_huolang());
            cardList_SetB.Add(new Mon_jimolenghuakai());
            cardList_SetB.Add(new Mon_Dog());
            cardList_SetB.Add(new Pit_shenpanlvling());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Mon_jimolenghuakai());
            cardList_SetA.Add(new Pit_kaqiusha());
            cardList_SetA.Add(new Pit_kaqiusha());
            cardList_SetA.Add(new Pit_kaqiusha());
            player2.CardGroup.GetCardGroup(cardList_SetB);
            //----------------------------------------------------------

            //----------------------------------------------------------

            Application.Run(parentForm);
            //----------------------------------------------------------
        }