From de07739d70433e16819ee8096e61d50c8a420432 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 May 2015 19:11:06 +0300 Subject: Move type AllPlayers into separate file. --- src/CMakeLists.txt | 1 + src/Makefile.am | 1 + src/actormanager.h | 2 ++ src/enums/simpletypes/allplayers.h | 28 ++++++++++++++++++++++++++++ src/enums/simpletypes/simpletypes.h | 1 - 5 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/enums/simpletypes/allplayers.h (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e257ca8ad..8e831828a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1055,6 +1055,7 @@ SET(SRCS sprite.h enums/screendensity.h enums/state.h + enums/simpletypes/allplayers.h enums/simpletypes/damaged.h enums/simpletypes/equipm.h enums/simpletypes/equipped.h diff --git a/src/Makefile.am b/src/Makefile.am index d064556bb..7156c0392 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1183,6 +1183,7 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \ sprite.h \ enums/screendensity.h \ enums/state.h \ + enums/simpletypes/allplayers.h \ enums/simpletypes/damaged.h \ enums/simpletypes/equipm.h \ enums/simpletypes/equipped.h \ diff --git a/src/actormanager.h b/src/actormanager.h index 53ba65e18..967cbeacc 100644 --- a/src/actormanager.h +++ b/src/actormanager.h @@ -25,6 +25,8 @@ #include "flooritem.h" +#include "enums/simpletypes/allplayers.h" + #include "listeners/configlistener.h" #include "utils/stringmap.h" diff --git a/src/enums/simpletypes/allplayers.h b/src/enums/simpletypes/allplayers.h new file mode 100644 index 000000000..10b746a6f --- /dev/null +++ b/src/enums/simpletypes/allplayers.h @@ -0,0 +1,28 @@ +/* + * The ManaPlus Client + * Copyright (C) 2015 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * 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 2 of the License, or + * 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 . + */ + +#ifndef ENUMS_SIMPLETYPES_ALLPLAYERS_H +#define ENUMS_SIMPLETYPES_ALLPLAYERS_H + +#include "enums/simpletypes/simpledefines.h" + +defBoolEnum(AllPlayers); + +#endif // ENUMS_SIMPLETYPES_ALLPLAYERS_H diff --git a/src/enums/simpletypes/simpletypes.h b/src/enums/simpletypes/simpletypes.h index 951d2fc53..973b4a489 100644 --- a/src/enums/simpletypes/simpletypes.h +++ b/src/enums/simpletypes/simpletypes.h @@ -25,7 +25,6 @@ #include "localconsts.h" -defBoolEnum(AllPlayers); defBoolEnum(AllowSort); defBoolEnum(NpcNames); defBoolEnum(Enable); -- cgit v1.2.3-70-g09d2