public ArenaMember AddMember(ArenaGroup group, Character character) { if (MemberExist(character)) { throw new Exception("Member is already registered is this ArenaMemberCollection"); } ArenaMember member = new ArenaMember(character, this); this.m_members.Add(member); return(member); }
public ArenaMember Register(Character character) { ArenaGroup group = FindGroup(character); if (group != null) { ArenaMember member = group.AddCharacter(character); if (group.Ready) { group.Request(); } return(member); } else { ArenaGroup newGroup = new ArenaGroup(); ArenaMember member = newGroup.AddCharacter(character); ArenaGroups.Add(newGroup); return(member); } }
public ArenaMemberCollection(ArenaGroup group) { this.Group = group; }