00001 #ifndef PICKS_H 00002 #define PICKS_H 00003 00004 #include <QVector> 00005 #include "team.h" 00006 00007 class Picks 00008 { 00009 public: 00010 Picks(void); 00011 Picks(int numTeams); 00012 Picks(int numTeams, QVector<Team*> teams); 00013 ~Picks(void); 00014 enum Round {SIXTEEN, EIGHT, QUARTER, HALF, FINAL}; 00015 00016 00017 Round getPickForTeam(int teamId); 00018 bool setPickForTeam(int teamId, Round round); 00019 00020 private: 00021 QVector<Team*> teams; 00022 bool checkCorrectPicks(int teamId); 00023 void init(int numTeams); 00024 Round minRound; 00025 bool teamsKnown; 00026 00027 }; 00028 00029 #endif