]> 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 6af9f194508ece7e82bf106675fff3370edba670..b84b04846158bd63d4f04830a4759c6cd7bc61c2 100644 (file)
@@ -22,24 +22,28 @@ namespace CarFire
         int playerDamage;\r
         int score;\r
         MovementManager mMotion;\r
+        List<IEntity> mInventory = new List<IEntity>(4);\r
         int mPlayerIndex;\r
         #endregion\r
 \r
         #region Public Properties\r
         public int Health { get { return playerHealth; } set{playerHealth = value;} }\r
-        public int Score { get { return score; } }\r
+        public int Score { get { return score; } set { score = value; } }\r
         public bool alive { get { return playerHealth > 0; } }\r
         public Game Game { get { return game; } }\r
         public MovementManager Motion { get { return mMotion; } }\r
         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
 \r
         #region Public Methods\r
This page took 0.018271 seconds and 4 git commands to generate.