/// <summary>Removes the given player from this one.</summary> /// <remarks>Removes the given player from this one.</remarks> /// <param name="player">indicates the player which has to be removed.</param> public virtual void removePlayer(SpriterAbstractPlayer player) { this.players.Remove(player); player.changeRootParent(null); }
/// <summary>Attaches a given player to this.</summary> /// <remarks>Attaches a given player to this.</remarks> /// <param name="player">indicates the player which has to be attached.</param> /// <param name="root"> /// indicates the object the attached player has to follow. /// Set to /// <see cref="getRootParent()">getRootParent()</see> /// to attach the player to the same position as this player. /// </param> public virtual void attachPlayer(SpriterAbstractPlayer player, SpriterAbstractObject root) { this.players.Add(player); player.changeRootParent(root); }