Mercurial > mm7
comparison Items.h @ 1113:39eaa6b00141
something to bool cast (performance warning) mostly fixed
author | Grumpy7 |
---|---|
date | Tue, 28 May 2013 00:19:45 +0200 |
parents | 7033eb155558 |
children | 0dbf6c4dd029 |
comparison
equal
deleted
inserted
replaced
1112:4994eb3947ae | 1113:39eaa6b00141 |
---|---|
143 // inline ItemGen() | 143 // inline ItemGen() |
144 // { | 144 // { |
145 // Reset(); | 145 // Reset(); |
146 // } | 146 // } |
147 | 147 |
148 inline bool Broken() {return uAttributes & ITEM_BROKEN;} | 148 inline bool Broken() {return (uAttributes & ITEM_BROKEN) != 0;} |
149 inline bool Identified() {return uAttributes & ITEM_IDENTIFIED;} | 149 inline bool Identified() {return (uAttributes & ITEM_IDENTIFIED) != 0;} |
150 inline void SetIdentified() {uAttributes |= ITEM_IDENTIFIED;} | 150 inline void SetIdentified() {uAttributes |= ITEM_IDENTIFIED;} |
151 inline bool Stolen() {return uAttributes & ITEM_STOLEN;} | 151 inline bool Stolen() {return (uAttributes & ITEM_STOLEN) != 0;} |
152 inline void SetStolen() {uAttributes |= ITEM_STOLEN;} | 152 inline void SetStolen() {uAttributes |= ITEM_STOLEN;} |
153 | 153 |
154 bool GenerateArtifact(); | 154 bool GenerateArtifact(); |
155 unsigned int GetValue(); | 155 unsigned int GetValue(); |
156 const char *GetDisplayName(); | 156 const char *GetDisplayName(); |