1 /* 2 * Copyright 2013, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "TeamInfo.h" 8 9 10 TeamInfo::TeamInfo() 11 : 12 fTeam(-1), 13 fArguments() 14 { 15 } 16 17 18 TeamInfo::TeamInfo(const TeamInfo &other) 19 { 20 fTeam = other.fTeam; 21 fArguments = other.fArguments; 22 } 23 24 25 TeamInfo::TeamInfo(team_id team, const team_info& info) 26 { 27 SetTo(team, info); 28 } 29 30 31 void 32 TeamInfo::SetTo(team_id team, const team_info& info) 33 { 34 fTeam = team; 35 fArguments.SetTo(info.args); 36 } 37 38 39 void 40 TeamInfo::SetTo(team_id team, const BString& arguments) 41 { 42 fTeam = team; 43 fArguments.SetTo(arguments); 44 } 45