aboutsummaryrefslogtreecommitdiffstats
path: root/test/jake2/qcommon
diff options
context:
space:
mode:
authorRene Stoeckel <[email protected]>2004-09-22 19:22:16 +0000
committerRene Stoeckel <[email protected]>2004-09-22 19:22:16 +0000
commitc4fcffe436fbfb5b0f3b7be2e5ee103ec74932f7 (patch)
tree7c9439ab1d9f5a4fd61bd57c755069007b23e0b6 /test/jake2/qcommon
parentbcb4ac6eefb425d5b0a90009da506361d5739e75 (diff)
major refactoring in game, server and client package
Diffstat (limited to 'test/jake2/qcommon')
-rw-r--r--test/jake2/qcommon/TestINFO.java3
-rw-r--r--test/jake2/qcommon/TestLoadGame.java64
-rw-r--r--test/jake2/qcommon/TestMSG.java8
3 files changed, 34 insertions, 41 deletions
diff --git a/test/jake2/qcommon/TestINFO.java b/test/jake2/qcommon/TestINFO.java
index fea3328..6a8483a 100644
--- a/test/jake2/qcommon/TestINFO.java
+++ b/test/jake2/qcommon/TestINFO.java
@@ -19,14 +19,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 29.12.2003 by RST.
-// $Id: TestINFO.java,v 1.1 2004-07-07 19:59:56 hzi Exp $
+// $Id: TestINFO.java,v 1.2 2004-09-22 19:22:10 salomo Exp $
package jake2.qcommon;
import jake2.*;
import jake2.client.*;
import jake2.game.*;
-import jake2.qcommon.*;
import jake2.render.*;
import jake2.server.*;
diff --git a/test/jake2/qcommon/TestLoadGame.java b/test/jake2/qcommon/TestLoadGame.java
index c6eb813..4268ee9 100644
--- a/test/jake2/qcommon/TestLoadGame.java
+++ b/test/jake2/qcommon/TestLoadGame.java
@@ -1,42 +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.
-
-*/
+ * 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: TestLoadGame.java,v 1.1 2004-07-07 19:59:56 hzi Exp $
-
+// $Id: TestLoadGame.java,v 1.2 2004-09-22 19:22:10 salomo Exp $
package jake2.qcommon;
-import jake2.*;
-import jake2.client.*;
-import jake2.game.*;
-import jake2.qcommon.*;
-import jake2.render.*;
-import jake2.server.*;
+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");
- }
-}
+ 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
diff --git a/test/jake2/qcommon/TestMSG.java b/test/jake2/qcommon/TestMSG.java
index d6dee32..9c2ba31 100644
--- a/test/jake2/qcommon/TestMSG.java
+++ b/test/jake2/qcommon/TestMSG.java
@@ -6,16 +6,17 @@
*/
package jake2.qcommon;
+import jake2.Defines;
/**
* @author rst
*/
public class TestMSG extends MSG {
public static void main(String[] args) {
- byte buf_data[] = new byte[MAX_MSGLEN];
+ byte buf_data[] = new byte[Defines.MAX_MSGLEN];
sizebuf_t buf = new sizebuf_t();
- SZ.Init(buf, buf_data, MAX_MSGLEN);
+ SZ.Init(buf, buf_data, Defines.MAX_MSGLEN);
MSG.WriteInt(buf, 0x80000000);
MSG.WriteInt(buf, 0x12345678);
@@ -57,8 +58,7 @@ public class TestMSG extends MSG {
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.ReadShort(buf));
System.out.println("Read:" + MSG.ReadFloat(buf));
}