- XNA 4.0 Game Development by Example: Beginner's Guide
- Kurt Jaegers
- 110字
- 2021-04-13 16:52:04
A constructor is run when an instance of the GamePiece class is created. By specifying two constructors, we will allow future code to create a GamePiece by specifying a piece type with or without a suffix. If no suffix is specified, an empty suffix is assumed.