File indexing completed on 2024-12-22 03:52:57
0001 /* 0002 This file is part of the KDE games library 0003 SPDX-FileCopyrightText: 2003 Andreas Beckermann <b_mann@gmx.de> 0004 SPDX-FileCopyrightText: 2003 Martin Heni <kde at heni-online.de> 0005 0006 SPDX-License-Identifier: LGPL-2.0-only 0007 */ 0008 0009 #ifndef __KGAMEVERSION_H__ 0010 #define __KGAMEVERSION_H__ 0011 0012 /** 0013 * \headerfile kgameversion.h <KGame/KGameVersion> 0014 * 0015 * In this file you find a couple of defines that indicate whether a specific 0016 * feature or function is present in this version of the KGame library. 0017 * 0018 * You don't need this for KDE CVS, but for games that live outside of KDE CVS 0019 * it may be very helpful and a lot easier than writing configure scripts for 0020 * this task. 0021 * 0022 * All defines are prefixed with KGAME_ to avoid conflicts. 0023 */ 0024 0025 // KGame::savegame() didn't exist in KDE 3.0 0026 #define KGAME_HAVE_KGAME_SAVEGAME 1 0027 0028 // KGameNetwork::port(), KMessageIO::peerPort() and friends were added in KDE 3.2 0029 #define KGAME_HAVE_KGAME_PORT 1 0030 0031 // KGameNetwork::hostName(), KMessageIO::peerName() and friends were added in KDE 3.2 0032 #define KGAME_HAVE_KGAME_HOSTNAME 1 0033 0034 // KGameSequence class was added in KDE 3.2 0035 #define KGAME_HAVE_KGAMESEQUENCE 1 0036 0037 // KGame::addPlayer() needs to assign an ID to new players, otherwise network is 0038 // broken. this is done in KDE 3.2. 0039 #define KGAME_HAVE_FIXED_ADDPLAYER_ID 1 0040 0041 #endif