Пример #1
0
    public void PrepareGameBot()
    {
        Ag.mSingleMode = true;
        //MySocket.IsGameHost = true;  // bot
        GameStartMsgSent.InitSet(false);
        ReMatchRefuseSent.InitSet(false);
        ReMatchSent.InitSet(false);
        UserModify("MATCHING", statusOnly: true);
        Ag.GameStt.GameMatchedWithBot(pComent: " Bot Game ");
        myGameLogic          = new AmGameLogic(MyUser.WAS.League, "PRO_5"); // Array 객체 초기화
        enGameLogic          = new AmGameLogic("PRO_5", MyUser.WAS.League);
        MySocket.arrGameRcvd = new List <NodeGameBase> ();
        MySocket.arrGameSend = new List <NodeGameBase> ();

        Ag.myEnem.BotUniformCardRankItemSetting();
    }
Пример #2
0
    //  _////////////////////////////////////////////////_    _____  Game  _____    Prepare Games    _____
    public void PrepareGame()
    {
        Ag.LogStartWithStr(3, "  PrepareGame ::  EnemyUser  " + Ag.NodeObj.MySocket.CurEnemy.id + "   MyUser    " + MyUser.WAS.League + "    NodeLeague    " + Ag.NodeObj.MySocket.CurEnemy.league);
        myGameLogic = new AmGameLogic(MyUser.WAS.League, Ag.NodeObj.MySocket.CurEnemy.league);   // Array 객체 초기화
        enGameLogic = new AmGameLogic(Ag.NodeObj.MySocket.CurEnemy.league, MyUser.WAS.League);
        MySocket.PrepareNewGame();
        GameFinish = null;

        Ag.LogDouble("  PrepareGame ::  >>>>  ");

        GameStartMsgSent.InitSet(false);  // 게임 시작 메시지 초기화.
        ReMatchRefuseSent.InitSet(false);
        ReMatchSent.InitSet(false);

        Ag.LogDouble("  PrepareGame ::  InitSet  >>>>  ");

        // Set Delegates
        if (AmHost.Value)
        {
            MySocket.dlgtGameGotResult = () => { // 결과가 갔다 왔슴.
            }
        }
        ;
        else
        {
            MySocket.dlgtGameGotResult = () => {
                SendGameTurnResult(TurnNum);
            }
        };

        Ag.LogDouble("  PrepareGame ::  >>>>  dlgt ");

        MySocket.dlgtEnemyLeft = MySocket.ActionLeave;
        MySocket.dlgtIleft     = MySocket.EventSign;

        Ag.LogDouble("  PrepareGame ::  >>>>  end ");
    }