mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Made many performance improvements (using FindBugs).
- Ability of Chainer, Dementia Master shouldn't be castable from hand anymore, also added ability text.
This commit is contained in:
@@ -83,7 +83,7 @@ public class WaveFileObuffer extends Obuffer
|
||||
/**
|
||||
* Write the samples to the file (Random Acces).
|
||||
*/
|
||||
short[] myBuffer = new short[2];
|
||||
//short[] myBuffer = new short[2];
|
||||
public void write_buffer(int val)
|
||||
{
|
||||
|
||||
|
||||
@@ -119,9 +119,9 @@ public class jlc
|
||||
public boolean processArgs(String[] argv)
|
||||
{
|
||||
filename = null;
|
||||
@SuppressWarnings("unused")
|
||||
Crc16[] crc;
|
||||
crc = new Crc16[1];
|
||||
|
||||
//Crc16[] crc;
|
||||
//crc = new Crc16[1];
|
||||
int i;
|
||||
int argc = argv.length;
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ final class BitReserve
|
||||
|
||||
private int offset, totbit, buf_byte_idx;
|
||||
private final int[] buf = new int[BUFSIZE];
|
||||
@SuppressWarnings("unused")
|
||||
private int buf_bit_idx;
|
||||
|
||||
//private int buf_bit_idx;
|
||||
|
||||
BitReserve()
|
||||
{
|
||||
|
||||
@@ -49,8 +49,7 @@ final class huffcodetab
|
||||
|
||||
private char tablename0 = ' '; /* string, containing table_description */
|
||||
private char tablename1 = ' '; /* string, containing table_description */
|
||||
@SuppressWarnings("unused")
|
||||
private char tablename2 = ' '; /* string, containing table_description */
|
||||
//private char tablename2 = ' '; /* string, containing table_description */
|
||||
|
||||
private int xlen; /* max. x-index+ */
|
||||
private int ylen; /* max. y-index+ */
|
||||
@@ -59,10 +58,10 @@ final class huffcodetab
|
||||
private int linmax; /* max number to be stored in linbits */
|
||||
@SuppressWarnings("unused")
|
||||
private int ref; /* a positive value indicates a reference */
|
||||
@SuppressWarnings("unused")
|
||||
private int[] table=null; /* pointer to array[xlen][ylen] */
|
||||
@SuppressWarnings("unused")
|
||||
private int[] hlen=null; /* pointer to array[xlen][ylen] */
|
||||
|
||||
//private int[] table=null; /* pointer to array[xlen][ylen] */
|
||||
|
||||
//private int[] hlen=null; /* pointer to array[xlen][ylen] */
|
||||
private int[][] val=null; /* decoder tree */
|
||||
private int treelen; /* length of decoder tree */
|
||||
|
||||
@@ -433,14 +432,14 @@ final class huffcodetab
|
||||
{
|
||||
tablename0 = S.charAt(0);
|
||||
tablename1 = S.charAt(1);
|
||||
tablename2 = S.charAt(2);
|
||||
//tablename2 = S.charAt(2);
|
||||
xlen = XLEN;
|
||||
ylen = YLEN;
|
||||
linbits = LINBITS;
|
||||
linmax = LINMAX;
|
||||
ref = REF;
|
||||
table = TABLE;
|
||||
hlen = HLEN;
|
||||
//linmax = LINMAX;
|
||||
//ref = REF;
|
||||
//table = TABLE;
|
||||
//hlen = HLEN;
|
||||
val = VAL;
|
||||
treelen = TREELEN;
|
||||
}
|
||||
|
||||
@@ -44,8 +44,7 @@ public class Player
|
||||
/**
|
||||
* The current frame number.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private int frame = 0;
|
||||
//private int frame = 0;
|
||||
|
||||
/**
|
||||
* The MPEG audio bitstream.
|
||||
|
||||
@@ -45,10 +45,10 @@ public class AdvancedPlayer
|
||||
/** Has the player been closed? */
|
||||
private boolean closed = false;
|
||||
/** Has the player played back all frames from the stream? */
|
||||
@SuppressWarnings("unused")
|
||||
private boolean complete = false;
|
||||
@SuppressWarnings("unused")
|
||||
private int lastPosition = 0;
|
||||
|
||||
//private boolean complete = false;
|
||||
|
||||
//private int lastPosition = 0;
|
||||
/** Listener for the playback process */
|
||||
private PlaybackListener listener;
|
||||
|
||||
@@ -104,7 +104,7 @@ public class AdvancedPlayer
|
||||
// System.out.println(audio.getPosition());
|
||||
synchronized (this)
|
||||
{
|
||||
complete = (!closed);
|
||||
//complete = (!closed);
|
||||
close();
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ public class AdvancedPlayer
|
||||
// this may fail, so ensure object state is set up before
|
||||
// calling this method.
|
||||
out.close();
|
||||
lastPosition = out.getPosition();
|
||||
//lastPosition = out.getPosition();
|
||||
try
|
||||
{
|
||||
bitstream.close();
|
||||
|
||||
Reference in New Issue
Block a user