Misc. Renaming

This commit is contained in:
thedaneeffect committed 2021-07-07 14:18:40 -04:00
1 parent c1bb18300d
commit 7324b531e1
8 files changed
+993 -887

No files matched your search

+64 -74
View File
@@ -47,7 +47,6 @@ public class Component {
}
int comparatorCount = in.get1U();
if (comparatorCount > 0) {
c.scriptComparator = new int[comparatorCount];
c.scriptOperand = new int[comparatorCount];
@@ -58,7 +57,6 @@ public class Component {
}
int scriptCount = in.get1U();
if (scriptCount > 0) {
c.scripts = new int[scriptCount][];
for (int scriptId = 0; scriptId < scriptCount; scriptId++) {
@@ -109,7 +107,7 @@ public class Component {
String s1 = in.getString();
if ((media != null) && (s1.length() > 0)) {
int i5 = s1.lastIndexOf(",");
c.invSlotImage[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), media, s1.substring(0, i5));
c.invSlotImage[j2] = getImage(Integer.parseInt(s1.substring(i5 + 1)), media, s1.substring(0, i5));
}
}
}
@@ -154,12 +152,12 @@ public class Component {
String s = in.getString();
if ((media != null) && (s.length() > 0)) {
int comma = s.lastIndexOf(",");
c.image = method207(Integer.parseInt(s.substring(comma + 1)), media, s.substring(0, comma));
c.image = getImage(Integer.parseInt(s.substring(comma + 1)), media, s.substring(0, comma));
}
s = in.getString();
if ((media != null) && (s.length() > 0)) {
int comma = s.lastIndexOf(",");
c.activeImage = method207(Integer.parseInt(s.substring(comma + 1)), media, s.substring(0, comma));
c.activeImage = getImage(Integer.parseInt(s.substring(comma + 1)), media, s.substring(0, comma));
}
}
@@ -245,98 +243,90 @@ public class Component {
imageCache = null;
}
public static Image24 method207(int i, FileArchive archive, String s) {
long l = (StringUtil.hashCode(s) << 8) + (long) i;
Image24 image = imageCache.get(l);
public static Image24 getImage(int id, FileArchive media, String name) {
long uid = (StringUtil.hashCode(name) << 8) + (long) id;
Image24 image = imageCache.get(uid);
if (image != null) {
return image;
}
try {
image = new Image24(archive, s, i);
imageCache.put(l, image);
image = new Image24(media, name, id);
imageCache.put(uid, image);
} catch (Exception _ex) {
return null;
}
return image;
}
public static void method208(int i, int j, Model model) {
public static void cacheModel(int id, int type, Model model) {
modelCache.clear();
if ((model != null) && (j != 4)) {
modelCache.put(((long) j << 16) + i, model);
if ((model != null) && (type != 4)) {
modelCache.put(((long) type << 16) + id, model);
}
}
public Image24 image;
public int seqCycle;
public Image24[] invSlotImage;
public int unusedInt;
public int[] scriptOperand;
public int contentType;
public int[] invSlotX;
public int hoverColor;
public int optionType;
public int activeColor;
public int width;
public String option;
/**
* A spell action should be two words separated by whitespace.
* Example: "Cast on"
* For usage search for <code>action 626</code> in {@link Game#useMenuOption(int)}
*/
public String spellAction;
public String spellName;
public int spellFlags;
public boolean center;
public int scrollY;
public String[] invOptions;
public int[][] scripts;
public boolean fill;
public String activeText;
public int delegateHover;
public int invMarginX;
public int color;
public int modelType;
public int modelTypeId;
/**
* When <code>true</code> moving an <code>Obj</code> from one slot to another will simply erase the item from the
* destination slot.
*/
public boolean invMoveReplaces;
public int parentId;
public int activeHoverColor;
public int[] children;
public int[] childX;
public boolean invUsable;
public BitmapFont font;
public int invMarginY;
public int[] scriptComparator;
public int seqFrame;
public int[] invSlotY;
public String text;
public boolean aBoolean249;
public int id;
public boolean unusedBool;
public int[] invSlotAmount;
public int[] invSlotObjId;
public byte transparency;
public int activeColor;
public int activeHoverColor;
public Image24 activeImage;
public int activeModelType;
public int activeModelTypeId;
public int seqId;
public int activeSeqId;
public String activeText;
public boolean center;
public int[] children;
public int[] childX;
public int[] childY;
public int color;
public int contentType;
public int delegateHover;
public boolean fill;
public BitmapFont font;
public int height;
public boolean hidden;
public int hoverColor;
public int id;
public Image24 image;
public boolean invDraggable;
public Image24 activeImage;
public int invMarginX;
public int invMarginY;
public boolean invMoveReplaces;
public String[] invOptions;
public int[] invSlotAmount;
public Image24[] invSlotImage;
public int[] invSlotObjId;
public int[] invSlotX;
public int[] invSlotY;
public boolean invUsable;
public int modelEyePitch;
public int modelType;
public int modelTypeId;
public int modelYaw;
public int modelZoom;
public String option;
public int optionType;
public int parentId;
public int[] scriptComparator;
public int[] scriptOperand;
public int[][] scripts;
public int scrollHeight;
public int scrollY;
public int seqCycle;
public int seqFrame;
public int seqId;
public boolean shadow;
public String spellAction;
public int spellFlags;
public String spellName;
public String text;
public byte transparency;
public int type;
public boolean unusedBool;
public int unusedInt;
public int width;
public int x;
public int y;
public boolean hidden;
public int height;
public boolean shadow;
public int modelZoom;
public int modelEyePitch;
public int modelYaw;
public int[] childY;
public Component() {
}
+899 -783
View File
File diff suppressed because it is too large. Load diff
+4 -4
View File
@@ -379,13 +379,13 @@ public abstract class GameShell extends JComponent implements Runnable, MouseLis
public void keyTyped(KeyEvent e) {
}
public int method5() {
int k = -1;
public int pollKey() {
int key = -1;
if (anInt33 != anInt32) {
k = anIntArray31[anInt32];
key = anIntArray31[anInt32];
anInt32 = (anInt32 + 1) & 0x7f;
}
return k;
return key;
}
@Override
+2 -2
View File
@@ -34,7 +34,7 @@ public class NPCEntity extends PathingEntity {
if (model == null) {
return null;
}
super.anInt1507 = model.minY;
super.height = model.minY;
if ((super.spotanim != -1) && (super.spotanimFrame != -1)) {
SpotAnimType type = SpotAnimType.instances[super.spotanim];
Model model_1 = type.method266();
@@ -61,7 +61,7 @@ public class NPCEntity extends PathingEntity {
}
@Override
public boolean method449() {
public boolean isVisible() {
return type != null;
}
+2 -2
View File
@@ -68,7 +68,7 @@ public class NPCType {
public int[] anIntArray70;
public int unusedInt0 = -1;
public int[] anIntArray73;
public int anInt75 = -1;
public int headicon = -1;
public int[] anIntArray76;
public int seqStand = -1;
public long uid = -1L;
@@ -279,7 +279,7 @@ public class NPCType {
} else if (i == 101) {
anInt92 = buffer.get1() * 5;
} else if (i == 102) {
anInt75 = buffer.get2U();
headicon = buffer.get2U();
} else if (i == 103) {
turnSpeed = buffer.get2U();
} else if (i == 106) {
+16 -16
View File
@@ -6,20 +6,20 @@ public class PathingEntity extends Entity {
public final int[] pathTileX = new int[10];
public final int[] pathTileZ = new int[10];
public final int[] anIntArray1514 = new int[4];
public final int[] anIntArray1515 = new int[4];
public final int[] anIntArray1516 = new int[4];
public final int[] damage = new int[4];
public final int[] damageType = new int[4];
public final int[] damageCycle = new int[4];
public final boolean[] pathRunning = new boolean[10];
public int index = -1;
public int anInt1503;
public int turnSpeed = 32;
public int seqRun = -1;
public String aString1506;
public int anInt1507 = 200;
public String chat;
public int height = 200;
public int dstYaw;
public int seqStand = -1;
public int seqTurn = -1;
public int anInt1513;
public int chatColor;
public int seqCurrent = -1;
public int seqFrame;
public int seqCycle;
@@ -34,11 +34,11 @@ public class PathingEntity extends Entity {
public int anInt1528;
public int anInt1529;
public int anInt1530;
public int anInt1531;
public int anInt1532 = -1000;
public int anInt1533;
public int anInt1534;
public int anInt1535 = 100;
public int chatStyle;
public int combatCycle = -1000;
public int health;
public int totalHealth;
public int chatTimer = 100;
public int anInt1537;
public int faceTileX;
public int faceTileZ;
@@ -104,10 +104,10 @@ public class PathingEntity extends Entity {
public void method447(int j, int k, int l) {
for (int i1 = 0; i1 < 4; i1++) {
if (anIntArray1516[i1] <= l) {
anIntArray1514[i1] = k;
anIntArray1515[i1] = j;
anIntArray1516[i1] = l + 70;
if (damageCycle[i1] <= l) {
damage[i1] = k;
damageType[i1] = j;
damageCycle[i1] = l + 70;
return;
}
}
@@ -160,7 +160,7 @@ public class PathingEntity extends Entity {
pathRunning[0] = flag;
}
public boolean method449() {
public boolean isVisible() {
return false;
}
+4 -4
View File
@@ -16,7 +16,7 @@ public class PlayerEntity extends PathingEntity {
public int gender;
public String name;
public int combatLevel;
public int anInt1706;
public int headicons;
public int anInt1707;
public int anInt1708;
public int y;
@@ -44,7 +44,7 @@ public class PlayerEntity extends PathingEntity {
if (model == null) {
return null;
}
super.anInt1507 = model.minY;
super.height = model.minY;
model.pickable = true;
if (aBoolean1699) {
return model;
@@ -106,7 +106,7 @@ public class PlayerEntity extends PathingEntity {
public void method451(Buffer buffer) {
buffer.position = 0;
gender = buffer.get1U();
anInt1706 = buffer.get1U();
headicons = buffer.get1U();
aType_1698 = null;
team = 0;
for (int j = 0; j < 12; j++) {
@@ -305,7 +305,7 @@ public class PlayerEntity extends PathingEntity {
}
@Override
public boolean method449() {
public boolean isVisible() {
return aBoolean1710;
}
+2 -2
View File
@@ -14,10 +14,10 @@ public class SceneCollisionMap {
anInt292 = i;
anInt293 = j;
flags = new int[anInt292][anInt293];
method210();
reset();
}
public void method210() {
public void reset() {
for (int i = 0; i < anInt292; i++) {
for (int j = 0; j < anInt293; j++) {
if ((i == 0) || (j == 0) || (i == (anInt292 - 1)) || (j == (anInt293 - 1))) {