summaryrefslogtreecommitdiff
path: root/src/enums/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 23:57:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 23:57:33 +0300
commit41dfafa2ff6e878308c5edde056edfa944bf6f03 (patch)
treee570bebc6fcf7227ebd8787d19c5b3a1bbd17a9b /src/enums/being
parent45379d14d9d3c7f4673b8390cb95d98bb1759f45 (diff)
downloadmanaverse-41dfafa2ff6e878308c5edde056edfa944bf6f03.tar.gz
manaverse-41dfafa2ff6e878308c5edde056edfa944bf6f03.tar.bz2
manaverse-41dfafa2ff6e878308c5edde056edfa944bf6f03.tar.xz
manaverse-41dfafa2ff6e878308c5edde056edfa944bf6f03.zip
Convert Pickup enum into strong typed enum.
Diffstat (limited to 'src/enums/being')
-rw-r--r--src/enums/being/pickup.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/enums/being/pickup.h b/src/enums/being/pickup.h
index 198097824..28a99976d 100644
--- a/src/enums/being/pickup.h
+++ b/src/enums/being/pickup.h
@@ -23,26 +23,23 @@
#ifndef ENUMS_BEING_PICKUP_H
#define ENUMS_BEING_PICKUP_H
+#include "enums/simpletypes/enumdefines.h"
+
#include "localconsts.h"
-namespace Pickup
+enumStart(Pickup)
{
- /**
- * Reasons an item can fail to be picked up.
- */
- enum Type
- {
- OKAY = 0,
- UNKNOWN,
- BAD_ITEM,
- TOO_HEAVY,
- TOO_FAR,
- INV_FULL,
- STACK_FULL,
- DROP_STEAL,
- MAX_AMOUNT,
- STACK_AMOUNT
- };
-} // namespace Pickup
+ OKAY = 0,
+ UNKNOWN,
+ BAD_ITEM,
+ TOO_HEAVY,
+ TOO_FAR,
+ INV_FULL,
+ STACK_FULL,
+ DROP_STEAL,
+ MAX_AMOUNT,
+ STACK_AMOUNT
+}
+enumEnd(Pickup);
#endif // ENUMS_BEING_PICKUP_H