QTfrontend/newnetclient.cpp
changeset 1475 bab5650fc894
parent 1471 b5295ec49e94
child 1512 43742041c211
equal deleted inserted replaced
1474:8817adb86da6 1475:bab5650fc894
    67 		return;
    67 		return;
    68 	}
    68 	}
    69 	
    69 	
    70 	RawSendNet(QString("CREATE%1%2").arg(delimeter).arg(room));
    70 	RawSendNet(QString("CREATE%1%2").arg(delimeter).arg(room));
    71 	m_pGameCFGWidget->setEnabled(true);
    71 	m_pGameCFGWidget->setEnabled(true);
       
    72 	m_pTeamSelWidget->setInteractivity(true);
    72 	isChief = true;
    73 	isChief = true;
    73 }
    74 }
    74 
    75 
    75 void HWNewNet::JoinRoom(const QString & room)
    76 void HWNewNet::JoinRoom(const QString & room)
    76 {
    77 {
    82 	
    83 	
    83 	loginStep++;
    84 	loginStep++;
    84 
    85 
    85 	RawSendNet(QString("JOIN%1%2").arg(delimeter).arg(room));
    86 	RawSendNet(QString("JOIN%1%2").arg(delimeter).arg(room));
    86 	m_pGameCFGWidget->setEnabled(false);
    87 	m_pGameCFGWidget->setEnabled(false);
    87 	m_pTeamSelWidget->setNonInteractive();
    88 	m_pTeamSelWidget->setInteractivity(false);
    88 	isChief = false;
    89 	isChief = false;
    89 }
    90 }
    90 
    91 
    91 void HWNewNet::AddTeam(const HWTeam & team)
    92 void HWNewNet::AddTeam(const HWTeam & team)
    92 {
    93 {
   451 	onSeedChanged(m_pGameCFGWidget->getCurrentSeed());
   452 	onSeedChanged(m_pGameCFGWidget->getCurrentSeed());
   452 	onThemeChanged(m_pGameCFGWidget->getCurrentTheme());
   453 	onThemeChanged(m_pGameCFGWidget->getCurrentTheme());
   453 	onInitHealthChanged(m_pGameCFGWidget->getInitHealth());
   454 	onInitHealthChanged(m_pGameCFGWidget->getInitHealth());
   454 	onTurnTimeChanged(m_pGameCFGWidget->getTurnTime());
   455 	onTurnTimeChanged(m_pGameCFGWidget->getTurnTime());
   455 	onFortsModeChanged(m_pGameCFGWidget->getGameFlags() & 0x1);
   456 	onFortsModeChanged(m_pGameCFGWidget->getGameFlags() & 0x1);
       
   457 	onTeamsDivideChanged(m_pGameCFGWidget->getGameFlags() & 0x10);
   456 	// always initialize with default ammo (also avoiding complicated cross-class dependencies)
   458 	// always initialize with default ammo (also avoiding complicated cross-class dependencies)
   457 	onWeaponsNameChanged("Default", cDefaultAmmoStore->mid(10));
   459 	onWeaponsNameChanged("Default", cDefaultAmmoStore->mid(10));
   458 }
   460 }
   459 
   461 
   460 void HWNewNet::RunGame()
   462 void HWNewNet::RunGame()