mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-08 09:59:36 +07:00
Renamed location methods to store since they are placing items in store locations
This commit is contained in:
parent
3055ccccd5
commit
d20f8fcab4
@ -332,11 +332,11 @@ public class CharData implements ItemData.UpdateListener, Pool.Poolable {
|
|||||||
item.location = Location.CURSOR;
|
item.location = Location.CURSOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void locationToCursor(int i) {
|
public void storeToCursor(int i) {
|
||||||
itemToCursor(i);
|
itemToCursor(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cursorToLocation(StoreLoc storeLoc, int x, int y) {
|
public void cursorToStore(StoreLoc storeLoc, int x, int y) {
|
||||||
assert itemData.cursor != ItemData.INVALID_ITEM;
|
assert itemData.cursor != ItemData.INVALID_ITEM;
|
||||||
Item item = itemData.getItem(itemData.cursor);
|
Item item = itemData.getItem(itemData.cursor);
|
||||||
item.location = Location.STORED;
|
item.location = Location.STORED;
|
||||||
@ -346,9 +346,9 @@ public class CharData implements ItemData.UpdateListener, Pool.Poolable {
|
|||||||
itemData.cursor = ItemData.INVALID_ITEM;
|
itemData.cursor = ItemData.INVALID_ITEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void swapLocationItem(int i, StoreLoc storeLoc, int x, int y) {
|
public void swapStoreItem(int i, StoreLoc storeLoc, int x, int y) {
|
||||||
cursorToLocation(storeLoc, x, y);
|
cursorToStore(storeLoc, x, y);
|
||||||
locationToCursor(i);
|
storeToCursor(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void bodyToCursor(BodyLoc bodyLoc) {
|
public void bodyToCursor(BodyLoc bodyLoc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user