mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 15:27:30 +07:00
Fixed spelling error DC.Direction#toReadDir -> #toRealDir
This commit is contained in:
@ -340,7 +340,7 @@ public class Animation extends BaseDrawable implements Pool.Poolable {
|
||||
box.max(layer.dc.getBox(direction));
|
||||
}
|
||||
} else if (frame < numFrames) { // TODO: else assign box to cof.box for dir
|
||||
int d = DC.Direction.toReadDir(direction, cof.getNumDirections());
|
||||
int d = DC.Direction.toRealDir(direction, cof.getNumDirections());
|
||||
int f = frame;
|
||||
box.reset();
|
||||
for (int l = 0; l < cof.getNumLayers(); l++) {
|
||||
@ -404,7 +404,7 @@ public class Animation extends BaseDrawable implements Pool.Poolable {
|
||||
shapes.rect(x + box.xMin, y - box.yMax, box.width, box.height);
|
||||
if (reset) shapes.end();
|
||||
} else if (DEBUG_MODE == 2 && frame < numFrames) {
|
||||
int d = DC.Direction.toReadDir(direction, cof.getNumDirections());
|
||||
int d = DC.Direction.toRealDir(direction, cof.getNumDirections());
|
||||
int f = frame;
|
||||
for (int l = 0; l < cof.getNumLayers(); l++) {
|
||||
int component = cof.getLayerOrder(d, f, l);
|
||||
@ -431,7 +431,7 @@ public class Animation extends BaseDrawable implements Pool.Poolable {
|
||||
drawLayer(batch, layer, x, y);
|
||||
}
|
||||
} else {
|
||||
int d = DC.Direction.toReadDir(direction, cof.getNumDirections());
|
||||
int d = DC.Direction.toRealDir(direction, cof.getNumDirections());
|
||||
int f = frame;
|
||||
// TODO: Layer blend modes should correspond with the cof trans levels
|
||||
for (int l = 0, numLayers = cof.getNumLayers(); l < numLayers; l++) {
|
||||
@ -463,7 +463,7 @@ public class Animation extends BaseDrawable implements Pool.Poolable {
|
||||
drawShadow(batch, layer, x, y);
|
||||
}
|
||||
} else if (frame < numFrames) {
|
||||
int d = DC.Direction.toReadDir(direction, cof.getNumDirections());
|
||||
int d = DC.Direction.toRealDir(direction, cof.getNumDirections());
|
||||
int f = frame;
|
||||
for (int l = 0; l < cof.getNumLayers(); l++) {
|
||||
int component = cof.getLayerOrder(d, f, l);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package com.riiablo.codec;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.graphics.Pixmap;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
||||
@ -8,8 +10,6 @@ import com.badlogic.gdx.utils.Disposable;
|
||||
import com.riiablo.codec.util.BBox;
|
||||
import com.riiablo.graphics.PaletteIndexedBatch;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public abstract class DC implements Disposable {
|
||||
public static final String[] EXTS = {DC6.EXT, DCC.EXT }; // I think uncompressed first is better
|
||||
|
||||
@ -88,7 +88,7 @@ public abstract class DC implements Disposable {
|
||||
public static abstract class Direction {
|
||||
BBox box;
|
||||
|
||||
public static int toReadDir(int d, int numDirs) {
|
||||
public static int toRealDir(int d, int numDirs) {
|
||||
switch (numDirs) {
|
||||
case 1:
|
||||
case 2:
|
||||
|
Reference in New Issue
Block a user