diff -r 000000000000 -r 67dcd379a2d5 cssdm_players.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cssdm_players.h Sun Jun 24 21:58:09 2007 +0000 @@ -0,0 +1,57 @@ +/** + * vim: set ts=4 : + * =============================================================== + * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC. + * By David "BAILOPAN" Anderson + * All rights reserved. + * =============================================================== + * + * 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 (at + * your option) 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; see the file COPYING; if not, write to the + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301 USA + * + * Version: $Id$ + */ + +#ifndef _INCLUDE_CSSDM_PLAYERS_H_ +#define _INCLUDE_CSSDM_PLAYERS_H_ + +#include "smsdk_ext.h" +#include + +struct dm_player_t +{ + edict_t *pEdict; + CBaseEntity *pEntity; + IPlayerInfo *pInfo; + IBotController *pBot; + ITimer *respawn_timer; + int userid; + bool is_spawned; + bool will_respawn_on_class; +}; + +class ClientListener : public IClientListener +{ +public: + void OnClientConnected(int client); + void OnClientPutInServer(int client); + void OnClientDisconnecting(int client); +}; + +dm_player_t *DM_GetPlayer(int client); + +extern ClientListener g_ClientListener; + +#endif //_INCLUDE_CSSDM_PLAYERS_H_