void NetworkLogic::joinRoomEventAction(int playerNr, const ExitGames::Common::JVector<int>& /*playernrs*/, const ExitGames::LoadBalancing::Player& player) { EGLOG(ExitGames::Common::DebugLevel::INFO, L"%ls joined the game", player.getName().cstr()); mOutputListener->writeLine(L""); mOutputListener->writeLine(ExitGames::Common::JString(L"player ") + playerNr + L" " + player.getName() + L" has joined the game"); if (playerNr!=this->getCurrentPlayerNumber()){ S3DX::user.sendEvent(S3DX::application.getCurrentUser(), S3DX::AIVariable("myPhotonCloud_AI"), S3DX::AIVariable("onUserEnterRoom"), S3DX::AIVariable(playerNr)); } }
void NetworkLogic::joinRoomEventAction(int playerNr, const ExitGames::Common::JVector<int>& /*playernrs*/, const ExitGames::LoadBalancing::Player& player) { mpOutputListener->writeLine(L""); mpOutputListener->writeLine(ExitGames::Common::JString(L"player ") + playerNr + L" " + player.getName() + L" has joined the game"); }
void NetworkLogic::joinRoomEventAction(int playerNr, const ExitGames::Common::JVector<int>& playernrs, const ExitGames::LoadBalancing::Player& player) { PhotonPeer_sendDebugOutput(&mLoadBalancingClient, DEBUG_LEVEL_INFO, L"%ls joined the game", player.getName().cstr()); mOutputListener->writeLine(L""); mOutputListener->writeLine(ExitGames::Common::JString(L"player ") + playerNr + L" " + player.getName() + L" has joined the game"); int noOfPlayer = mLoadBalancingClient.getCurrentlyJoinedRoom().getPlayers().getSize(); mOutputListener->writeLine(ExitGames::Common::JString(L"no. of player ") + noOfPlayer); sendEvent(EV_PLAYERINFO); if(noOfPlayer==2){ mLoadBalancingClient.getCurrentlyJoinedRoom().setIsOpen(false); /*mOutputListener->writeLine(L"start game"); mStateAccessor.setState(STATE_STARTGAME);*/ } }
void NetworkLogic::joinRoomEventAction(int playerNr, const ExitGames::Common::JVector<int>& playernrs, const ExitGames::LoadBalancing::Player& player) { PhotonPeer_sendDebugOutput(&mLoadBalancingClient, DEBUG_LEVEL_INFO, L"%ls joined the game", player.getName().cstr()); mOutputListener->writeLine(L""); mOutputListener->writeLine(ExitGames::Common::JString(L"player ") + playerNr + L" " + player.getName() + L" has joined the game"); }