From 29181589eb79d3afdf337e2517b4fa43d8bbdd59 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Feb 2018 02:22:04 +0300 Subject: Rename clanInfo into localClan. --- src/being/claninfo.cpp | 25 ----------------- src/being/claninfo.h | 72 ------------------------------------------------- src/being/localclan.cpp | 25 +++++++++++++++++ src/being/localclan.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 97 insertions(+), 97 deletions(-) delete mode 100644 src/being/claninfo.cpp delete mode 100644 src/being/claninfo.h create mode 100644 src/being/localclan.cpp create mode 100644 src/being/localclan.h (limited to 'src/being') diff --git a/src/being/claninfo.cpp b/src/being/claninfo.cpp deleted file mode 100644 index bba4fcd5e..000000000 --- a/src/being/claninfo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/* - * The ManaPlus Client - * Copyright (C) 2018 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 . - */ - -#include "being/claninfo.h" - -#include "debug.h" - -ClanInfo clanInfo; diff --git a/src/being/claninfo.h b/src/being/claninfo.h deleted file mode 100644 index 307044cb3..000000000 --- a/src/being/claninfo.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * The ManaPlus Client - * Copyright (C) 2018 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 BEING_CLANINFO_H -#define BEING_CLANINFO_H - -#include "enums/simpletypes/beingid.h" - -#include "utils/vector.h" - -#include - -#include "localconsts.h" - -struct ClanInfo final -{ - ClanInfo() : - allyClans(), - antagonistClans(), - name(), - masterName(), - mapName(), - id(0), - onlineMembers(0), - totalMembers(0) - { - } - - A_DELETE_COPY(ClanInfo) - - void clear() - { - allyClans.clear(); - antagonistClans.clear(); - name.clear(); - masterName.clear(); - mapName.clear(); - id = 0; - onlineMembers = 0; - totalMembers = 0; - } - - STD_VECTOR allyClans; - STD_VECTOR antagonistClans; - std::string name; - std::string masterName; - std::string mapName; - int id; - int onlineMembers; - int totalMembers; -}; - -extern ClanInfo clanInfo; - -#endif // BEING_CLANINFO_H diff --git a/src/being/localclan.cpp b/src/being/localclan.cpp new file mode 100644 index 000000000..b01c2e85e --- /dev/null +++ b/src/being/localclan.cpp @@ -0,0 +1,25 @@ +/* + * The ManaPlus Client + * Copyright (C) 2018 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 . + */ + +#include "being/localclan.h" + +#include "debug.h" + +LocalClan localClan; diff --git a/src/being/localclan.h b/src/being/localclan.h new file mode 100644 index 000000000..e8292136f --- /dev/null +++ b/src/being/localclan.h @@ -0,0 +1,72 @@ +/* + * The ManaPlus Client + * Copyright (C) 2018 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 BEING_LOCALCLAN_H +#define BEING_LOCALCLAN_H + +#include "enums/simpletypes/beingid.h" + +#include "utils/vector.h" + +#include + +#include "localconsts.h" + +struct LocalClan final +{ + LocalClan() : + allyClans(), + antagonistClans(), + name(), + masterName(), + mapName(), + id(0), + onlineMembers(0), + totalMembers(0) + { + } + + A_DELETE_COPY(LocalClan) + + void clear() + { + allyClans.clear(); + antagonistClans.clear(); + name.clear(); + masterName.clear(); + mapName.clear(); + id = 0; + onlineMembers = 0; + totalMembers = 0; + } + + STD_VECTOR allyClans; + STD_VECTOR antagonistClans; + std::string name; + std::string masterName; + std::string mapName; + int id; + int onlineMembers; + int totalMembers; +}; + +extern LocalClan localClan; + +#endif // BEING_LOCALCLAN_H -- cgit v1.2.3-70-g09d2