1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/cssdm_players.h Sun Jun 24 21:58:09 2007 +0000
1.3 @@ -0,0 +1,57 @@
1.4 +/**
1.5 + * vim: set ts=4 :
1.6 + * ===============================================================
1.7 + * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC.
1.8 + * By David "BAILOPAN" Anderson
1.9 + * All rights reserved.
1.10 + * ===============================================================
1.11 + *
1.12 + * This program is free software; you can redistribute it and/or modify
1.13 + * it under the terms of the GNU General Public License as published by
1.14 + * the Free Software Foundation; either version 2 of the License, or (at
1.15 + * your option) any later version.
1.16 + *
1.17 + * This program is distributed in the hope that it will be useful, but
1.18 + * WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.20 + * General Public License for more details.
1.21 + *
1.22 + * You should have received a copy of the GNU General Public License
1.23 + * along with this program; see the file COPYING; if not, write to the
1.24 + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
1.25 + * MA 02110-1301 USA
1.26 + *
1.27 + * Version: $Id$
1.28 + */
1.29 +
1.30 +#ifndef _INCLUDE_CSSDM_PLAYERS_H_
1.31 +#define _INCLUDE_CSSDM_PLAYERS_H_
1.32 +
1.33 +#include "smsdk_ext.h"
1.34 +#include <iplayerinfo.h>
1.35 +
1.36 +struct dm_player_t
1.37 +{
1.38 + edict_t *pEdict;
1.39 + CBaseEntity *pEntity;
1.40 + IPlayerInfo *pInfo;
1.41 + IBotController *pBot;
1.42 + ITimer *respawn_timer;
1.43 + int userid;
1.44 + bool is_spawned;
1.45 + bool will_respawn_on_class;
1.46 +};
1.47 +
1.48 +class ClientListener : public IClientListener
1.49 +{
1.50 +public:
1.51 + void OnClientConnected(int client);
1.52 + void OnClientPutInServer(int client);
1.53 + void OnClientDisconnecting(int client);
1.54 +};
1.55 +
1.56 +dm_player_t *DM_GetPlayer(int client);
1.57 +
1.58 +extern ClientListener g_ClientListener;
1.59 +
1.60 +#endif //_INCLUDE_CSSDM_PLAYERS_H_