/* * PVVMUD a 3D MUD * Copyright (C) 1998-1999 Programvareverkstedet (pvv@pvv.org) * * 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; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef _CLISRVMANAGER_H #define _CLISRVMANAGER_H #include "clisrvprotocol.H" #include "cliworld.H" #include "cliviewpoint.H" #include "action.H" #include "manager.H" #include "cligos.H" #include "cliworldmanager.H" #include "option.H" class CPvvmudClient; class CCliSrvManager: public CManager { CCliWorld * m_world; CCliViewpoint * m_viewpoint; CCliGOS * m_cligos; CCliWorldManager * m_worldsrv; CPvvmudClient * m_client; // Action list int actionObjectId[5]; CTimeKeeper * m_timeKeeper; public: CCliSrvManager(CCliSrvProtocol * protocol,CTimeKeeper * timeKeeper); virtual ~CCliSrvManager(); CCliSrvProtocol * getProtocol(){ return (CCliSrvProtocol*)CManager::getCommunicate();} CCliWorld* getWorld(){ return m_world; } void setClient(CPvvmudClient * client); CPvvmudClient * getClient(); COption * getOption(); void communicate(); void init(); void hello(); void serverInfo(CInetAddress * worldSrvAddress,CInetAddress * gosAddress); void quit(); void exit(); void changeMasterCellId(DWORD newMasterCellId); void createStartFrame(); void deleteStartFrame(); void animate(); void draw(CRenderer * renderer); void updateViewpoint( const CPosition & position, const CDirection & direction, DWORD targetId); void playerMove( int move ); void playerLook( int look ); void userCommand(int num); void selection( int objectId ); void sendMsg( const char * msg ); void sendPing(); void clearWorld(); void doAction(int actionNum); void addAction(int objectId,CAction * action); CCliViewpoint * getViewpoint(){ return m_viewpoint; } int request(int requestType,int requestId); void addGeometry(CGeometry * geometry); void addMaterial(CMaterial * material); void addTexture(CTexture * texture); void dump(); virtual CGeometry * newGeometry(int geometryId); virtual CMaterial * newMaterial(int materialId); virtual CTexture * newTexture(int textureId); }; #endif // _CLISRVMANAGER_H