summaryrefslogtreecommitdiff
path: root/src/map/battle.t.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-06-11 21:55:13 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-06-11 23:27:33 -0700
commit8b5370313dcc00a45ea5c3e8b4c497bc00fd8e13 (patch)
tree15e8a4841af992e17794f26fc7991ed40c35bd51 /src/map/battle.t.hpp
parent8c6072df499ef9068346fbe8313b63dbba1e4e82 (diff)
downloadtmwa-8b5370313dcc00a45ea5c3e8b4c497bc00fd8e13.tar.gz
tmwa-8b5370313dcc00a45ea5c3e8b4c497bc00fd8e13.tar.bz2
tmwa-8b5370313dcc00a45ea5c3e8b4c497bc00fd8e13.tar.xz
tmwa-8b5370313dcc00a45ea5c3e8b4c497bc00fd8e13.zip
Allegedly remove all manual memory management
Diffstat (limited to 'src/map/battle.t.hpp')
-rw-r--r--src/map/battle.t.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/battle.t.hpp b/src/map/battle.t.hpp
index e374298..f730cc5 100644
--- a/src/map/battle.t.hpp
+++ b/src/map/battle.t.hpp
@@ -25,6 +25,10 @@ ENUM_BITWISE_OPERATORS(BF)
}
using e::BF;
+namespace e
+{
+// not actually an enum, but put in the namespace to hide the operators
+// from non-ADL.
struct BCT
{
// former representation:
@@ -56,6 +60,8 @@ constexpr
bool operator == (BCT l, BCT r) { return l.lo == r.lo && l.mid == r.mid && l.classic == r.classic && l.level == r.level && l.unused == r.unused; }
constexpr
bool operator != (BCT l, BCT r) { return !(l == r); }
+} // namespace e
+using e::BCT;
constexpr
BCT BCT_NOENEMY = {0x00, 0x00, 0x0, 0x0, 0x00};