From 506a41d6926405b2753894f0b40130b4077828b3 Mon Sep 17 00:00:00 2001 From: wushin Date: Tue, 9 Jun 2015 01:06:22 -0500 Subject: Remove old Magic --- src/map/magic-expr-eval.hpp | 54 --------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/map/magic-expr-eval.hpp (limited to 'src/map/magic-expr-eval.hpp') diff --git a/src/map/magic-expr-eval.hpp b/src/map/magic-expr-eval.hpp deleted file mode 100644 index e8ed4aa..0000000 --- a/src/map/magic-expr-eval.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#pragma once -// magic-expr-eval.hpp - Utilities for evaluating magic. -// -// Copyright © 2004-2011 The Mana World Development Team -// Copyright © 2011-2014 Ben Longbons -// -// This file is part of The Mana World (Athena server) -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -#include "fwd.hpp" - -#include "../strings/zstring.hpp" - -#include "magic-interpreter.t.hpp" - - -namespace tmwa -{ -namespace map -{ -namespace magic -{ -// TODO soon kill this unlike I killed VAR -#define ARGINT(x) args[x].get_if()->v_int -#define ARGDIR(x) args[x].get_if()->v_dir -#define ARGSTR(x) ZString(args[x].get_if()->v_string) -#define ARGENTITY(x) args[x].get_if()->v_entity -#define ARGLOCATION(x) args[x].get_if()->v_location -#define ARGAREA(x) args[x].get_if()->v_area -#define ARGSPELL(x) args[x].get_if()->v_spell -#define ARGINVOCATION(x) args[x].get_if()->v_invocation - -#define ENTITY_TYPE(x) ARGENTITY(x)->bl_type - -#define ARGPC(x) (ARGENTITY(x)->is_player()) -#define ARGNPC(x) (ARGENTITY(x)->is_npc()) -#define ARGMOB(x) (ARGENTITY(x)->is_mob()) - -#define ARG_MAY_BE_AREA(x) (args[x].is() || args[x].is()) -} // namespace magic -} // namespace map -} // namespace tmwa -- cgit v1.2.3-70-g09d2