From 2f4fc005937e75d931eb6ef87a3fe16364d45113 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 26 Jun 2014 21:59:27 -0700 Subject: Stick everything in a namespace --- src/map/map.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/map.hpp') diff --git a/src/map/map.hpp b/src/map/map.hpp index aa2d97a..af08ae4 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -52,6 +52,9 @@ # include "script.hpp" // change to script.t.hpp # include "skill.t.hpp" + +namespace tmwa +{ constexpr int MAX_NPC_PER_MAP = 512; constexpr int BLOCK_SIZE = 8; # define AREA_SIZE battle_config.area_size @@ -720,5 +723,6 @@ inline dumb_ptr npc_data::is_script() { return npc_subtype == N inline dumb_ptr npc_data::is_shop() { return npc_subtype == NpcSubtype::SHOP ? as_shop() : nullptr ; } inline dumb_ptr npc_data::is_warp() { return npc_subtype == NpcSubtype::WARP ? as_warp() : nullptr ; } inline dumb_ptr npc_data::is_message() { return npc_subtype == NpcSubtype::MESSAGE ? as_message() : nullptr ; } +} // namespace tmwa #endif // TMWA_MAP_MAP_HPP -- cgit v1.2.3-60-g2f50