Indiefreaks.Xna.Sessions.SessionManager.GetIdentifiedPlayer C# (CSharp) Method

GetIdentifiedPlayer() public static method

Returns the Identified player with the given logical player index
public static GetIdentifiedPlayer ( LogicalPlayerIndex logicalPlayerIndex ) : IdentifiedPlayer
logicalPlayerIndex LogicalPlayerIndex
return IdentifiedPlayer
        public static IdentifiedPlayer GetIdentifiedPlayer(LogicalPlayerIndex logicalPlayerIndex)
        {
            if (LogicalPlayers.ContainsKey(logicalPlayerIndex))
                return LogicalPlayers[logicalPlayerIndex];

            throw new CoreException("No players identified as " + logicalPlayerIndex.ToString());
        }