From: Rene S. <sa...@us...> - 2004-09-22 19:22:50
|
Update of /cvsroot/jake2/jake2/test/jake2/qcommon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11556/test/jake2/qcommon Modified Files: TestMSG.java TestLoadGame.java TestINFO.java Log Message: major refactoring in game, server and client package Index: TestINFO.java =================================================================== RCS file: /cvsroot/jake2/jake2/test/jake2/qcommon/TestINFO.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestINFO.java 7 Jul 2004 19:59:56 -0000 1.1.1.1 --- TestINFO.java 22 Sep 2004 19:22:10 -0000 1.2 *************** *** 27,31 **** import jake2.client.*; import jake2.game.*; - import jake2.qcommon.*; import jake2.render.*; import jake2.server.*; --- 27,30 ---- Index: TestLoadGame.java =================================================================== RCS file: /cvsroot/jake2/jake2/test/jake2/qcommon/TestLoadGame.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestLoadGame.java 7 Jul 2004 19:59:56 -0000 1.1.1.1 --- TestLoadGame.java 22 Sep 2004 19:22:10 -0000 1.2 *************** *** 1,42 **** /* ! Copyright (C) 1997-2001 Id Software, Inc. ! ! 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. ! ! */ // Created on 02.01.2004 by RST. // $Id$ - package jake2.qcommon; ! import jake2.*; ! import jake2.client.*; ! import jake2.game.*; ! import jake2.qcommon.*; ! import jake2.render.*; ! import jake2.server.*; public class TestLoadGame { ! public static void main(String args[]) { ! ! Qcommon.Init(args); ! ! System.out.println("hello!"); ! GameSave.InitGame(); ! GameSave.ReadGame("test/data/savegames/game.ssv"); ! } ! } --- 1,36 ---- /* ! * Copyright (C) 1997-2001 Id Software, Inc. ! * ! * 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. ! * ! */ // Created on 02.01.2004 by RST. // $Id$ package jake2.qcommon; ! import jake2.game.GameSave; public class TestLoadGame { ! public static void main(String args[]) { ! ! Qcommon.Init(args); ! ! System.out.println("hello!"); ! GameSave.InitGame(); ! GameSave.ReadGame("test/data/savegames/game.ssv"); ! } ! } \ No newline at end of file Index: TestMSG.java =================================================================== RCS file: /cvsroot/jake2/jake2/test/jake2/qcommon/TestMSG.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestMSG.java 7 Jul 2004 19:59:58 -0000 1.1.1.1 --- TestMSG.java 22 Sep 2004 19:22:10 -0000 1.2 *************** *** 7,10 **** --- 7,11 ---- package jake2.qcommon; + import jake2.Defines; /** * @author rst *************** *** 13,20 **** public static void main(String[] args) { ! byte buf_data[] = new byte[MAX_MSGLEN]; sizebuf_t buf = new sizebuf_t(); ! SZ.Init(buf, buf_data, MAX_MSGLEN); MSG.WriteInt(buf, 0x80000000); --- 14,21 ---- public static void main(String[] args) { ! byte buf_data[] = new byte[Defines.MAX_MSGLEN]; sizebuf_t buf = new sizebuf_t(); ! SZ.Init(buf, buf_data, Defines.MAX_MSGLEN); MSG.WriteInt(buf, 0x80000000); *************** *** 58,63 **** System.out.println("Read:" + MSG.ReadShort(buf)); System.out.println("Read:" + MSG.ReadShort(buf)); ! System.out.println("Read:" + MSG.ReadShort(buf)); ! System.out.println("Read:" + MSG.ReadFloat(buf)); --- 59,63 ---- System.out.println("Read:" + MSG.ReadShort(buf)); System.out.println("Read:" + MSG.ReadShort(buf)); ! System.out.println("Read:" + MSG.ReadShort(buf)); System.out.println("Read:" + MSG.ReadFloat(buf)); |