Table of Contents

Class Player

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

int

Name

The display name of the player.

public string Name { get; set; }

Property Value

string

Speed

The movement speed of the player in units per second.

public float Speed { get; set; }

Property Value

float