X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FPlayer.cs;h=b84b04846158bd63d4f04830a4759c6cd7bc61c2;hp=da1af4ecc02a385cef816c1d5a2ca97d1326337b;hb=08f41ef45f3c41ca6302150bc6d5270c8e7143db;hpb=3ca5852a7df47d4129743ed449816c7c7347b699 diff --git a/CarFire/CarFire/CarFire/Player.cs b/CarFire/CarFire/CarFire/Player.cs index da1af4e..b84b048 100644 --- a/CarFire/CarFire/CarFire/Player.cs +++ b/CarFire/CarFire/CarFire/Player.cs @@ -28,18 +28,20 @@ namespace CarFire #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; } + public Point Coordinates { get { return mMotion.Coordinates; } set { Coordinates = value; mMotion = new MovementManager(value, basePlayerSpeed); } } + public char Identifier { get { return mPlayerIndex.ToString()[0]; } } public int Damage { get { return playerDamage; } set { playerDamage = value; } } public List Inventory { get { return mInventory; } } #endregion