From 46d1266f00dfde5d04d7980daea4bab02e77cb69 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Sep 2014 13:44:03 +0300 Subject: Use MercenaryInfo object for storing mercenary attributes. --- src/being/mercenaryinfo.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/being/mercenaryinfo.h (limited to 'src/being/mercenaryinfo.h') diff --git a/src/being/mercenaryinfo.h b/src/being/mercenaryinfo.h new file mode 100644 index 000000000..6bb9fd84d --- /dev/null +++ b/src/being/mercenaryinfo.h @@ -0,0 +1,39 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2014 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_MERCENARYINFO_H +#define BEING_MERCENARYINFO_H + +#include "localconsts.h" + +struct MercenaryInfo final +{ + MercenaryInfo() : + id(0), + name() + { } + + A_DELETE_COPY(MercenaryInfo) + + int id; + std::string name; +}; + +#endif // BEING_MERCENARYINFO_H -- cgit v1.2.3-70-g09d2