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(); }
// _////////////////////////////////////////////////_ _____ Methods _____ Prepare Game _____ public void PrepareNewGame() { Ag.LogDouble(" NodeSocket :: PrepareNewGame "); arrGameRcvd = new List <NodeGameBase> (); arrGameSend = new List <NodeGameBase> (); ReMatchSent.InitSet(false); //xxNoOpponentReceived = null; //AgStt.EnemyNodePrepareObj.arrDirectionInfo.Clear (); if (IsGameHost.Value) { Ag.LogIntenseWord(" NodeSocket :: PrepareNewGame I am Host .... Session Key : " + sessionKey); AgStt.MyNodePrepareObj = new NodeGamePrepare(); AgStt.MyNodePrepareObj.sessionKey = sessionKey = MyUser.WAS.GameSessionKey; ActionGamePrepare(AgStt.MyNodePrepareObj); } Ag.GameStt.StartGamePacket(" I am Host ? " + IsGameHost.Value + " ... Prepare New Game "); }
// _////////////////////////////////////////////////_ _____ 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 "); }