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 10TeamInfo::TeamInfo() 11 : 12 fTeam(-1), 13 fArguments() 14{ 15} 16 17 18TeamInfo::TeamInfo(const TeamInfo &other) 19{ 20 fTeam = other.fTeam; 21 fArguments = other.fArguments; 22} 23 24 25TeamInfo::TeamInfo(team_id team, const team_info& info) 26{ 27 SetTo(team, info); 28} 29 30 31void 32TeamInfo::SetTo(team_id team, const team_info& info) 33{ 34 fTeam = team; 35 fArguments.SetTo(info.args); 36} 37 38 39void 40TeamInfo::SetTo(team_id team, const BString& arguments) 41{ 42 fTeam = team; 43 fArguments.SetTo(arguments); 44} 45