summaryrefslogtreecommitdiff
path: root/src/map/pc.t.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-12-23 14:23:32 -0800
committerBen Longbons <b.r.longbons@gmail.com>2012-12-24 10:52:13 -0800
commita1a02150d710df2838060445b9ad447689538985 (patch)
tree8ae2d08ebbd04df92a2e07f738a614d4f22157f1 /src/map/pc.t.hpp
parent7afacd63fe36eb56b52490ecf22daeaa95657942 (diff)
downloadtmwa-a1a02150d710df2838060445b9ad447689538985.tar.gz
tmwa-a1a02150d710df2838060445b9ad447689538985.tar.bz2
tmwa-a1a02150d710df2838060445b9ad447689538985.tar.xz
tmwa-a1a02150d710df2838060445b9ad447689538985.zip
Enumify some more things ... maybe even everything
Diffstat (limited to 'src/map/pc.t.hpp')
-rw-r--r--src/map/pc.t.hpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/map/pc.t.hpp b/src/map/pc.t.hpp
new file mode 100644
index 0000000..3a21691
--- /dev/null
+++ b/src/map/pc.t.hpp
@@ -0,0 +1,49 @@
+#ifndef PC_T_HPP
+#define PC_T_HPP
+
+#include <cstdint>
+
+enum class PC_GAINEXP_REASON
+{
+ KILLING = 0,
+#define PC_GAINEXP_REASON_KILLING PC_GAINEXP_REASON::KILLING
+ HEALING = 1,
+#define PC_GAINEXP_REASON_HEALING PC_GAINEXP_REASON::HEALING
+ // temporary rename to avoid collision with npc subtypes
+ SCRIPT_ = 2,
+#define PC_GAINEXP_REASON_SCRIPT PC_GAINEXP_REASON::SCRIPT_
+
+ COUNT,
+};
+
+enum class ADDITEM
+{
+ EXIST,
+#define ADDITEM_EXIST ADDITEM::EXIST
+ NEW,
+#define ADDITEM_NEW ADDITEM::NEW
+ OVERAMOUNT,
+#define ADDITEM_OVERAMOUNT ADDITEM::OVERAMOUNT
+
+ // when used as error in nullpo_retr
+ ZERO = 0,
+};
+
+enum class CalcStatus
+{
+ NOW,
+ LATER ,
+};
+
+enum class PickupFail : uint8_t
+{
+ OKAY = 0,
+ BAD_ITEM = 1,
+ TOO_HEAVY = 2,
+ TOO_FAR = 3,
+ INV_FULL = 4,
+ STACK_FULL = 5,
+ DROP_STEAL = 6,
+};
+
+#endif // PC_T_HPP