diff options
author | Holger Zickner <[email protected]> | 2004-07-07 19:59:59 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-07 19:59:59 +0000 |
commit | 6e23fc1074d1f0c2c2812f4c2e663f5a21a43c20 (patch) | |
tree | 46ecc6d0255c874ba4cd26dc3d0733f785019896 /src/jake2/game/LittleEndianHandler.java |
import of Jake2 version sunrisesunrise
Diffstat (limited to 'src/jake2/game/LittleEndianHandler.java')
-rw-r--r-- | src/jake2/game/LittleEndianHandler.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/jake2/game/LittleEndianHandler.java b/src/jake2/game/LittleEndianHandler.java new file mode 100644 index 0000000..932a84b --- /dev/null +++ b/src/jake2/game/LittleEndianHandler.java @@ -0,0 +1,56 @@ +/* + * LittleEndianHandler.java + * Copyright (C) 2003 + * + * $Id: LittleEndianHandler.java,v 1.1 2004-07-07 19:59:07 hzi Exp $ + */ +package jake2.game; + +/** + * LittleEndianHandler</code> + */ +public final class LittleEndianHandler extends EndianHandler { + + /* (non-Javadoc) + * @see quake2.EndianHandler#BigFloat(float) + */ + public float BigFloat(float f) { + return swapFloat(f); + } + + /* (non-Javadoc) + * @see quake2.EndianHandler#BigShort(short) + */ + public short BigShort(short s) { + return swapShort(s); + } + + /* (non-Javadoc) + * @see quake2.EndianHandler#BigLong(int) + */ + public int BigLong(int i) { + return swapInt(i); + } + + /* (non-Javadoc) + * @see quake2.EndianHandler#LittleFloat(float) + */ + public float LittleFloat(float f) { + return f; + } + + /* (non-Javadoc) + * @see quake2.EndianHandler#LittleShort(short) + */ + public short LittleShort(short s) { + return s; + } + + /* (non-Javadoc) + * @see quake2.EndianHandler#LittleLong(int) + */ + public int LittleLong(int i) { + return i; + } + +} |