Creating Multiplayer Games
Chapter 6, “Using Polymorphism via Interfaces,” discussed a basic framework for the creation of two-player games, but it did so with the assumption that one player would be human controlled and the other computer controlled. This chapter introduces a two-player game in which the first player is always human and the second player is either a human or a computer. Furthermore, the second human player can be sitting at the same computer as the first player, or she can be on another computer connected to the first one via a network.
KeywordsClass Instance Event Handler Human Player Game Class Network Game
Unable to display preview. Download preview PDF.