X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Project06%2FCS%203505%20Project%2006%2FCS%203505%20Project%2006%2FNetworkGame.cs;h=d2b4846489967f504ac36634be1aebbaed6f54b1;hb=8a11d454e88649b469fb9794f662beb7f6a15c6a;hp=c8cc60c907f3be7788c4c5983ffda2bbed1bc1c5;hpb=fda045bce6b1a1ad4dc9b7ccbb33fc1c536a5957;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 c8cc60c..d2b4846 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 @@ -69,11 +69,11 @@ 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 + public GamerCollection NetworkGamers { get { - return mNetworkSession.LocalGamers; + return mNetworkSession.AllGamers; } } @@ -98,7 +98,7 @@ namespace CS_3505_Project_06 // -Brady public bool sessionExists() { - return mNetworkSession == null; + return mNetworkSession != null; } public AvailableNetworkSessionCollection FindSessions() @@ -115,6 +115,14 @@ namespace CS_3505_Project_06 return mNetworkSession; } + // added to begin the game. I made the LobbyGUI make sure that only the host will call it when everyone is ready. + // This is already taken care of in the update method below. But it may be nice to allow the host to signal the start + // rather then having it start automatically. Just a suggestion. + // -Brady + public void StartGame() + { + mNetworkSession.StartGame(); + } public void LeaveSession() {