示例#1
0
        public void ShowGamePage()
        {
            //TODO..

            RuntimeData oppData = RuntimeData.Create("Resources/Scripts/test_save2.xml");
            GamePlayer  opp     = GamePlayer.CreateFromRuntimeData(oppData);
            CardQueue   queue   = new CardQueue(opp);

            for (int i = 0; i < 4; ++i)
            {
                opp.HandleCard.Add(queue.FetchCard());
            }

            GamePlayer me        = GamePlayer.CreateFromLocal();
            CardQueue  cardQueue = new CardQueue(me);

            for (int i = 0; i < 4; ++i)
            {
                me.HandleCard.Add(cardQueue.FetchCard());
            }

            gameView.Show(0, opp, me, cardQueue);
        }