#include "trait.h"

// Constructor
Trait::Trait(QString traitName_, int numUnits_, int tierCurrent_, int tierTotal_)
{

    traitName = traitName_;
    numUnits = numUnits_;
    tierCurrent = tierCurrent_;
    tierTotal = tierTotal_;

}


// Define < operator to sort qlist
bool Trait::operator <(const Trait &traitObj) const{
    return numUnits < traitObj.numUnits;
}

{'avg_line_length': 19.473684210526315, 'max_line_length': 81, 'alphanum_fraction': 0.7135135135135136, 'licenses': ['MIT'], 'repository_name': 'YannikSahl/TFT-Analyzer', 'path': 'src/trait.cpp', 'size': 370, 'lang': 'C++'}