diff Items.h @ 1567:9f8b3e904e14

Player::ReceiveDamage, very small edits; prepended "Is" to item functions returning bool values (broken, indetified, stolen)
author Grumpy7
date Sun, 08 Sep 2013 05:22:33 +0200
parents 1f3f01d39300
children 43d3536a20f7 bb2378f58767
line wrap: on
line diff
--- a/Items.h	Sun Sep 08 04:11:10 2013 +0200
+++ b/Items.h	Sun Sep 08 05:22:33 2013 +0200
@@ -167,10 +167,11 @@
  //   Reset();
  // }
 
-  inline bool Broken()        {return (uAttributes & ITEM_BROKEN) != 0;}
-  inline bool Identified()    {return (uAttributes & ITEM_IDENTIFIED) != 0;}
+  inline bool IsBroken()        {return (uAttributes & ITEM_BROKEN) != 0;}
+  inline void SetBroken()     {uAttributes |= ITEM_BROKEN;}
+  inline bool IsIdentified()    {return (uAttributes & ITEM_IDENTIFIED) != 0;}
   inline void SetIdentified() {uAttributes |= ITEM_IDENTIFIED;}
-  inline bool Stolen()        {return (uAttributes & ITEM_STOLEN) != 0;}
+  inline bool IsStolen()        {return (uAttributes & ITEM_STOLEN) != 0;}
   inline void SetStolen()     {uAttributes |= ITEM_STOLEN;}
 
   bool GenerateArtifact();