| 程序包 | 说明 |
|---|---|
| org.slingerxv.limitart.game.bag | |
| org.slingerxv.limitart.game.item |
| 限定符和类型 | 方法和说明 |
|---|---|
AbstractItem |
Bag.getItem(int gridId)
获取相应格子的物品
|
AbstractItem |
Bag.removeItem(int gridId)
删除某物品
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract Map<Integer,AbstractItem> |
Bag.bag() |
List<AbstractItem> |
Bag.getItems(Test1<AbstractItem> filter)
获取符合条件的物品
|
List<AbstractItem> |
Bag.removeItems(Test1<AbstractItem> filter)
根据条件删除相关物品
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Bag.addItem(AbstractItem item)
添加一个物品
|
void |
Bag.addItem(int gridId,
AbstractItem item)
添加一个物品
|
void |
Bag.canAddItem(AbstractItem item)
是否能添加物品
|
protected abstract void |
Bag.onItemAdded(int gridId,
AbstractItem item)
添加物品后
|
abstract void |
Bag.onItemChanged(AbstractItem item)
物品信息产生变化
|
protected abstract void |
Bag.onItemRemoved(int gridId,
AbstractItem item)
删除物品后
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Bag.addItems(List<AbstractItem> items)
添加一串物品
|
void |
Bag.canAddItems(List<AbstractItem> items)
能否批量添加物品
|
int |
Bag.getItemCount(Test1<AbstractItem> filter)
获取符合条件的物品的数量
|
List<AbstractItem> |
Bag.getItems(Test1<AbstractItem> filter)
获取符合条件的物品
|
List<AbstractItem> |
Bag.removeItems(Test1<AbstractItem> filter)
根据条件删除相关物品
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract AbstractItem |
AbstractItem.copy()
拷贝物品
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract boolean |
AbstractItem.isSameType(AbstractItem another)
是否为同种物品
|
Copyright © 2017. All rights reserved.