QTfrontend/teamselect.cpp
changeset 140 50ccde437ea1
parent 132 2d0f404cdf05
child 147 52a3c431db8a
equal deleted inserted replaced
139:340ded7cc336 140:50ccde437ea1
    75   framePlaying=new FrameTeams();
    75   framePlaying=new FrameTeams();
    76   frameDontPlaying=new FrameTeams();
    76   frameDontPlaying=new FrameTeams();
    77   addScrArea(framePlaying, QColor("DarkTurquoise"));
    77   addScrArea(framePlaying, QColor("DarkTurquoise"));
    78   addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow"));
    78   addScrArea(frameDontPlaying, QColor("LightGoldenrodYellow"));
    79 }
    79 }
       
    80 
       
    81 void TeamSelWidget::resetPlayingTeams()
       
    82 {
       
    83 }
       
    84 
       
    85 bool TeamSelWidget::isPlaying(HWTeam team)
       
    86 {
       
    87   return std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team)!=curPlayingTeams.end();
       
    88 }
       
    89 
       
    90 unsigned char TeamSelWidget::numHedgedogs(HWTeam team)
       
    91 {
       
    92   TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team));
       
    93   if(!tsw) return 0;
       
    94   return tsw->getHedgehogsNum();
       
    95 }