]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/Player.cs
New IEntity properties: Coordinates (set), Identifier. Loadable entities should...
[chaz/carfire] / CarFire / CarFire / CarFire / Player.cs
index 9d6c6b41499dcdd181fc0955de3b459c3b534f3d..b84b04846158bd63d4f04830a4759c6cd7bc61c2 100644 (file)
@@ -35,12 +35,13 @@ namespace CarFire
         public int PlayerIndex { get { return mPlayerIndex; } }\r
         public bool IsCollidable { get { return true; } }\r
         public Vector2 Position { get { return mMotion.Position; } }\r
-        public Point Coordinates { get { return mMotion.Coordinates; } \r
+        public Point Coordinates { get { return mMotion.Coordinates; }\r
             set\r
             {\r
                 Coordinates = value;\r
                 mMotion = new MovementManager(value, basePlayerSpeed);\r
             } }\r
+        public char Identifier { get { return mPlayerIndex.ToString()[0]; } }\r
         public int Damage { get { return playerDamage; } set { playerDamage = value; } }\r
         public List<IEntity> Inventory { get { return mInventory; } }\r
         #endregion\r
This page took 0.017695 seconds and 4 git commands to generate.