X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FPlayer.cs;h=9d6c6b41499dcdd181fc0955de3b459c3b534f3d;hp=6af9f194508ece7e82bf106675fff3370edba670;hb=60d05271b295d2ca94a0028059add525c1bbffb1;hpb=51e2ac05cd36fffa4fd39d592c5df91dae4752ed diff --git a/CarFire/CarFire/CarFire/Player.cs b/CarFire/CarFire/CarFire/Player.cs index 6af9f19..9d6c6b4 100644 --- a/CarFire/CarFire/CarFire/Player.cs +++ b/CarFire/CarFire/CarFire/Player.cs @@ -22,16 +22,18 @@ namespace CarFire int playerDamage; int score; MovementManager mMotion; + List mInventory = new List(4); int mPlayerIndex; #endregion #region Public Properties public int Health { get { return playerHealth; } set{playerHealth = value;} } - public int Score { get { return score; } } + public int Score { get { return score; } set { score = value; } } public bool alive { get { return playerHealth > 0; } } public Game Game { get { return game; } } public MovementManager Motion { get { return mMotion; } } public int PlayerIndex { get { return mPlayerIndex; } } + public bool IsCollidable { get { return true; } } public Vector2 Position { get { return mMotion.Position; } } public Point Coordinates { get { return mMotion.Coordinates; } set @@ -40,6 +42,7 @@ namespace CarFire mMotion = new MovementManager(value, basePlayerSpeed); } } public int Damage { get { return playerDamage; } set { playerDamage = value; } } + public List Inventory { get { return mInventory; } } #endregion #region Public Methods