X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=Project06%2FCS%203505%20Project%2006%2FCS%203505%20Project%2006%2FNetworkGame.cs;h=c8cc60c907f3be7788c4c5983ffda2bbed1bc1c5;hp=abe36ba4a4d4ca1dcd6d84affc91fbad5766960e;hb=fda045bce6b1a1ad4dc9b7ccbb33fc1c536a5957;hpb=74e1f08b57f723891499ae70a8ae59a0c7857740 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..c8cc60c 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() {