Chapter 20. Networking player location
This chapter covers
- The updated Player model
- Using an ItemsControl to display ships
- Sending player updates across TCP
In the previous chapter you created the Ship user control and displayed it on the screen. In this chapter you’ll expand on that work. The primary purpose of this chapter is to show you how I filled out the glue code that makes the socket service and player display from the previous chapters respond to the user input from the next chapter. As part of this, you’ll learn some interesting techniques such as using a bound ItemsControl to display the players on the playing field and spinning up background threads to send test data across the wire.
You’ll start by updating the Player model ...
Get Windows Store App Development: C# and XAML now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.