00001 #include "picks.h" 00002 00003 Picks::Picks(void) 00004 { 00005 teamsKnown=false; 00006 init(4); 00007 } 00008 00009 Picks::Picks(int numTeams) { 00010 teamsKnown=false; 00011 init(numTeams); 00012 } 00013 00014 Picks::Picks(int numTeams, QVector<Team*> teams) 00015 : teams(teams) 00016 { 00017 teamsKnown=true; 00018 init(numTeams); 00019 } 00020 00021 Picks::~Picks(void){} 00022 00023 00024 00025 Picks::Round Picks::getPickForTeam(int teamId) 00026 { 00027 return EIGHT; 00028 } 00029 00030 bool Picks::setPickForTeam(int teamId, Round round) 00031 { 00032 return false; 00033 } 00034 00035 bool Picks::checkCorrectPicks(int teamId) 00036 { 00037 return false; 00038 } 00039 00040 void Picks::init(int numTeams) { 00041 if(numTeams==4) 00042 minRound=HALF; 00043 else if(numTeams==8) 00044 minRound=QUARTER; 00045 else if(numTeams==16) 00046 minRound=EIGHT; 00047 else if(numTeams==32) 00048 minRound=SIXTEEN; 00049 00050 if(teamsKnown) 00051 { 00052 00053 } 00054 00055 00056 } 00057 00058