#region File Description //----------------------------------------------------------------------------- // Player.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion #region Using Statements using System; using System.Collections.Generic; using System.Text; #endregion namespace Spacewar { /// /// Represents the current state of each player in the game /// public class Player { /// /// The current ship class the player is using /// private ShipClass shipClass = ShipClass.Pencil; /// /// The current skin the player ship is using /// private int skin; /// /// The amount of cash the current player has to spend /// private int cash; /// /// The current weapon the player is using /// private ProjectileType projectileType = ProjectileType.Peashooter; /// /// The current score for this player /// private int score; /// /// The current health level for this player /// private int health = 5; #region Properties public ShipClass ShipClass { get { return shipClass; } set { shipClass = value; } } public int Cash { get { return cash; } set { cash = value; } } public int Score { get { return score; } set { score = value; } } public int Skin { get { return skin; } set { skin = value; } } public int Health { get { return health; } set { health = value; } } public ProjectileType ProjectileType { get { return projectileType; } set { projectileType = value; } } #endregion } }