Class Bag

java.lang.Object
com.deco2800.game.components.player.Bag
All Implemented Interfaces:
BagInterface

public class Bag
extends java.lang.Object
implements BagInterface
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    protected class  Bag.BagIterator  
  • Field Summary

    Fields inherited from interface com.deco2800.game.components.player.BagInterface

    CAPACITY
  • Constructor Summary

    Constructors 
    Constructor Description
    Bag()  
  • Method Summary

    Modifier and Type Method Description
    void add​(Entity e)
    添加物品
    ComponentIterator<Entity> iterator()
    背包迭代器
    void move​(Entity e1, Entity e2)
    物品交换位置
    void remove​(Entity e)
    移除装备

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait