1 /* 2 * Hedgewars, a free turn based strategy game 3 * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19 #ifndef ACHIEVEMENTS_H 20 #define ACHIEVEMENTS_H 21 22 #define MAX_ACHIEVEMENTS 128 23 24 // This is just for testing and far from being complete - everything might change so don't use it anywhere! 25 26 enum achflags 27 { 28 ACH_FLAGS_NONE = 0x00, 29 ACH_FLAGS_HIDDEN = 0x01, 30 ACH_FLAGS_INACTIVE = 0x02, 31 // UNKNOWN = 0x04, 32 // UNKNOWN = 0x08, 33 // UNKNOWN = 0x10, 34 // UNKNOWN = 0x20, 35 // UNKNOWN = 0x40, 36 // UNKNOWN = 0x80, 37 }; 38 39 struct achievement 40 { 41 const char *id; 42 const char *caption; 43 const char *description; 44 const char *image; 45 const int goal; 46 const int flags; 47 }; 48 49 extern const char achievements[][6][256]; 50 51 #endif // ACHIEVEMENTS_H 52