//++ BulliT #if !defined(AFX_AGGAMEMODES_H__B6D8EF5B_9423_4422_B935_1D71B6146DCA__INCLUDED_) #define AFX_AGGAMEMODES_H__B6D8EF5B_9423_4422_B935_1D71B6146DCA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "agglobal.h" #include "aggame.h" class AgGameMode { typedef map > AgGameMap; AgGameMap m_mapGames; void LoadGames(); AgGame* pCurrent; float m_fNextCheck; public: AgGameMode(); virtual ~AgGameMode(); void Init(); void Think(); void ExecConfig(); void Help(CBasePlayer* pPlayer = NULL); bool HandleCommand(CBasePlayer* pPlayer); void Gamemode(const AgString& sGamemode,CBasePlayer* pPlayer = NULL); bool IsGamemode(const AgString& sGamemode); bool IsAllowedGamemode(const AgString& sGamemode,CBasePlayer* pPlayer = NULL); void NextGamemode(const AgString& sGamemode,CBasePlayer* pPlayer = NULL); }; extern DLL_GLOBAL AgGameMode GameMode; AgString AgGamename(); AgString AgGamedescription(); //++ muphicks enum enumGameType { STANDARD = 0, ARENA = 1, LMS = 2, CTF = 3, ARCADE = 4, SGBOW = 5, INSTAGIB = 6, DOM = 7}; //-- muphicks extern DLL_GLOBAL BYTE g_GameType; inline BYTE AgGametype() { return g_GameType; }; #endif // !defined(AFX_AGGAMEMODES_H__B6D8EF5B_9423_4422_B935_1D71B6146DCA__INCLUDED_) //-- Martin Webrant