diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-19 22:21:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-19 22:21:19 +0300 |
commit | 8462b9ae346a41a37b2790c3ea5f14f0e783ab71 (patch) | |
tree | 88af636220275fbd28ef77bf44bd2503cd0d24c0 /src/resources/item/cardslist.h | |
parent | 67fd3978786c5f3f66b37fe22d0f7d657de69207 (diff) | |
download | manaverse-8462b9ae346a41a37b2790c3ea5f14f0e783ab71.tar.gz manaverse-8462b9ae346a41a37b2790c3ea5f14f0e783ab71.tar.bz2 manaverse-8462b9ae346a41a37b2790c3ea5f14f0e783ab71.tar.xz manaverse-8462b9ae346a41a37b2790c3ea5f14f0e783ab71.zip |
Add struct for store cards list.
Diffstat (limited to 'src/resources/item/cardslist.h')
-rw-r--r-- | src/resources/item/cardslist.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/resources/item/cardslist.h b/src/resources/item/cardslist.h new file mode 100644 index 000000000..f8a7fee3a --- /dev/null +++ b/src/resources/item/cardslist.h @@ -0,0 +1,48 @@ +/* + * The ManaPlus Client + * Copyright (C) 2004-2009 The Mana World Development Team + * Copyright (C) 2009-2010 The Mana Developers + * Copyright (C) 2011-2016 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 <http://www.gnu.org/licenses/>. + */ + +#ifndef RESOURCES_ITEM_CARDSLIST_H +#define RESOURCES_ITEM_CARDSLIST_H + +#include "const/resources/item/cards.h" + +#include "localconsts.h" + +struct CardsList final +{ + CardsList(const int card0, + const int card1, + const int card2, + const int card3) + { + cards[0] = card0; + cards[1] = card1; + cards[2] = card2; + cards[3] = card3; + } + + int cards[maxCards]; +}; + +extern CardsList zeroCards; + +#endif // RESOURCES_ITEM_CARDSLIST_H |