/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ /* game_network_player_manager.h * Copyright (C) 2002 Laurent Belmonte * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef GAME_NETWORK_PLAYER_MANAGER_H #define GAME_NETWORK_PLAYER_MANAGER_H #include #include "game-manager.h" #include "monkey-canvas.h" #include "monkey.h" #include "message-handler.h" G_BEGIN_DECLS #define TYPE_GAME_NETWORK_PLAYER_MANAGER (game_network_player_manager_get_type()) #define GAME_NETWORK_PLAYER_MANAGER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TYPE_GAME_NETWORK_PLAYER_MANAGER,GameNetworkPlayerManager)) #define GAME_NETWORK_PLAYER_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GAME_NETWORK_PLAYER_MANAGER,GameNetworkPlayerManagerClass)) #define IS_GAME_NETWORK_PLAYER_MANAGER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), TYPE_GAME_NETWORK_PLAYER_MANAGER)) #define IS_GAME_NETWORK_PLAYER_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GAME_NETWORK_PLAYER_MANAGER)) #define GAME_NETWORK_PLAYER_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GAME_NETWORK_PLAYER_MANAGER, GameNetworkPlayerManagerClass)) typedef struct GameNetworkPlayerManagerPrivate GameNetworkPlayerManagerPrivate; typedef struct { GObject parent_instance; GameNetworkPlayerManagerPrivate * private; } GameNetworkPlayerManager; typedef struct { GObjectClass parent_class; } GameNetworkPlayerManagerClass; GType game_network_player_manager_get_type(void); GameNetworkPlayerManager * game_network_player_manager_new(GtkWidget * window,MonkeyCanvas * canvas, NetworkMessageHandler * handler,int client_id); void game_network_player_manager_start(GameManager * g); void game_network_player_manager_stop(GameManager * g); G_END_DECLS #endif