RoomItems.java 809 B

123456789101112131415161718192021222324
  1. package cz.davza.studentadventure.objects;
  2. import cz.davza.studentadventure.base.ItemCollectionBase;
  3. import cz.davza.studentadventure.interfaces.IItem;
  4. /**
  5. * A fixed-size item collection representing the items present in a room.
  6. *
  7. * <p>Thin concrete subclass of {@link ItemCollectionBase} — all behaviour is
  8. * inherited. The capacity passed to the constructor determines how many bulk
  9. * units of items the room can hold at once.</p>
  10. *
  11. * @see ItemCollectionBase
  12. * @see cz.davza.studentadventure.base.RoomBase
  13. */
  14. public class RoomItems extends ItemCollectionBase<IItem> {
  15. /**
  16. * Creates a new room item collection with the given bulk capacity.
  17. *
  18. * @param size the total bulk capacity of this room's item storage
  19. */
  20. public RoomItems(int size) {
  21. super(size);
  22. }
  23. }