QTfrontend/team.cpp
changeset 7145 1d1a14b39400
parent 7133 9f250f79cb79
child 7254 aa4461ec7737
equal deleted inserted replaced
7144:6e3974128631 7145:1d1a14b39400
    52         m_binds[i].strbind = cbinds[i].strbind;
    52         m_binds[i].strbind = cbinds[i].strbind;
    53     }
    53     }
    54     m_rounds = 0;
    54     m_rounds = 0;
    55     m_wins = 0;
    55     m_wins = 0;
    56     m_campaignProgress = 0;
    56     m_campaignProgress = 0;
       
    57     m_color = 0;
    57 }
    58 }
    58 
    59 
    59 HWTeam::HWTeam(const QStringList& strLst) :
    60 HWTeam::HWTeam(const QStringList& strLst) :
    60     QObject(0)
    61     QObject(0)
    61     , m_numHedgehogs(4)
    62     , m_numHedgehogs(4)
    80         if (m_hedgehogs[i].Hat.isEmpty()) m_hedgehogs[i].Hat = "NoHat";
    81         if (m_hedgehogs[i].Hat.isEmpty()) m_hedgehogs[i].Hat = "NoHat";
    81     }
    82     }
    82     m_rounds = 0;
    83     m_rounds = 0;
    83     m_wins = 0;
    84     m_wins = 0;
    84     m_campaignProgress = 0;
    85     m_campaignProgress = 0;
       
    86     m_color = 0;
    85 }
    87 }
    86 
    88 
    87 HWTeam::HWTeam() :
    89 HWTeam::HWTeam() :
    88     QObject(0)
    90     QObject(0)
    89     , m_difficulty(0)
    91     , m_difficulty(0)
   110         m_binds[i].strbind = cbinds[i].strbind;
   112         m_binds[i].strbind = cbinds[i].strbind;
   111     }
   113     }
   112     m_rounds = 0;
   114     m_rounds = 0;
   113     m_wins = 0;
   115     m_wins = 0;
   114     m_campaignProgress = 0;
   116     m_campaignProgress = 0;
       
   117     m_color = 0;
   115 }
   118 }
   116 
   119 
   117 HWTeam::HWTeam(const HWTeam & other) :
   120 HWTeam::HWTeam(const HWTeam & other) :
   118     QObject(0)
   121     QObject(0)
   119     , OldTeamName(other.OldTeamName)
   122     , OldTeamName(other.OldTeamName)
   155         m_isNetTeam = other.m_isNetTeam;
   158         m_isNetTeam = other.m_isNetTeam;
   156         m_owner = other.m_owner;
   159         m_owner = other.m_owner;
   157         m_campaignProgress = other.m_campaignProgress;
   160         m_campaignProgress = other.m_campaignProgress;
   158         m_rounds = other.m_rounds;
   161         m_rounds = other.m_rounds;
   159         m_wins = other.m_wins;
   162         m_wins = other.m_wins;
       
   163         m_color = other.m_color;
   160     }
   164     }
   161 
   165 
   162     return *this;
   166     return *this;
   163 }
   167 }
   164 
   168