X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Project06%2FCS%203505%20Project%2006%2FCS%203505%20Project%2006%2FNetworkGame.cs;h=b27393201e3b793331abb547d6208c5654bed132;hb=7050e6960cdccc7560ea5a7efb8b04e02629f28a;hp=abe36ba4a4d4ca1dcd6d84affc91fbad5766960e;hpb=bc3db44f8f717780cce18d5384272f501984e446;p=chaz%2Fcarfire diff --git a/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs b/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs index abe36ba..b273932 100644 --- a/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs +++ b/Project06/CS 3505 Project 06/CS 3505 Project 06/NetworkGame.cs @@ -59,7 +59,7 @@ namespace CS_3505_Project_06 } - LocalNetworkGamer LocalGamer + public LocalNetworkGamer LocalGamer { get { @@ -67,8 +67,18 @@ namespace CS_3505_Project_06 } } + // I added this as I needed a way to display all gamers not just the first gamer + // -Brady + public GamerCollection LocalGamers + { + get + { + return mNetworkSession.LocalGamers; + } + } + - NetworkSession CreateSession() + public NetworkSession CreateSession() { return CreateSession(mGame.MaximumSupportedPlayers); } @@ -84,6 +94,12 @@ namespace CS_3505_Project_06 return mNetworkSession; } + // added so I can test if sessionExists and thus be able to call things on NetworkGame safely + // -Brady + public bool sessionExists() + { + return mNetworkSession != null; + } public AvailableNetworkSessionCollection FindSessions() {