Renamed location methods to store since they are placing items in store locations

This commit is contained in:
Collin Smith 2020-01-16 15:58:45 -08:00
parent 3055ccccd5
commit d20f8fcab4

View File

@ -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) {