#include "estrazione.h"
Estrazione::Estrazione(QDate _data) { // costruttore a 1 parametro
data = _data;
}
void Estrazione::setEstrazioneRuota(Lotto::Ruota _ruota, QVector<int> _numeri) { // inserisce nell'estrazione i numueri di una ruota
ruote[_ruota] = _numeri;
}
bool Estrazione::operator<(Estrazione _estrazione) const {
return this->data < _estrazione.data;
}
bool Estrazione::operator<=(Estrazione _estrazione) const {
return this->data <= _estrazione.data;
}
bool Estrazione::operator>(Estrazione _estrazione) const {
return this->data > _estrazione.data;
}
bool Estrazione::operator>=(Estrazione _estrazione) const {
return this->data >= _estrazione.data;
}
bool Estrazione::operator==(Estrazione _estrazione) const {
return this->data == _estrazione.data;
}
bool Estrazione::operator!=(Estrazione _estrazione) const {
return this->data != _estrazione.data;
}
EstrazioneRuota Estrazione::getEstrazioneRuota(Lotto::Ruota _ruota) const { // restituisce i numeri di una ruota
return ruote[_ruota];
}