Class Player
- Namespace
- WitShells.DesignPatterns.Core
Example product class used to demonstrate the Builder pattern. Represents a game player with a name, health, and movement speed.
public class Player
- Inheritance
-
Player
- Inherited Members
Properties
Health
The starting health points of the player.
public int Health { get; set; }
Property Value
Name
The display name of the player.
public string Name { get; set; }
Property Value
Speed
The movement speed of the player in units per second.
public float Speed { get; set; }