////////////////////////////////////////////////////////////////////// // // Game Source Code // // File: GameShared.h // Description: Stuffs shared by the game's source files. // // History: // - August 9, 2001: Created by Alberto Demichelis // ////////////////////////////////////////////////////////////////////// #ifndef GAME_GAMESHARED_H #define GAME_GAMESHARED_H #if _MSC_VER > 1000 # pragma once #endif ////////////////////////////////////////////////////////////////////////////////////////////// #define INVALID_WID 0 // Invalid WORD ID --- value for the CIDGenerator class ////////////////////////////////////////////////////////////////////////////////////////////// // Actions typedef unsigned char ACTIONTYPE; #define ACTION_MOVE_LEFT 1 //#define ACTIONFLAG_MOVE_LEFT (1<> we need more bits!! #define ACTION_SCORE_BOARD 8 //#define ACTIONFLAG_SCORE_BOARD (1< m_nAmmoInClip; //< amount of ammo in the clip of that firemode } tWeaponPersistentData; typedef struct { bool m_bDataSaved; int m_nHealth,m_nArmor; int m_nSelectedWeaponID; int m_nAmmo; //< only valid if m_nSelectedWeaponID != -1 int m_nAmmoInClip; //< only valid if m_nSelectedWeaponID != -1 int m_vWeaponSlots[PLAYER_MAX_WEAPONS]; std::map m_mapWeapons; std::map m_mapAmmo; std::list m_lItems; } tPlayerPersistentData; ////////////////////////////////////////////////////////////////////////// #endif // GAME_GAMESHARED_H