Class PCBoxSearch

All Implemented Interfaces:
Iterable<Pokemon>

public class PCBoxSearch extends PCBox
  • Constructor Details

  • Method Details

    • getWallpaper

      public String getWallpaper()
      Overrides:
      getWallpaper in class PCBox
    • set

      public void set(StoragePosition position, Pokemon pokemon)
      This prevents the super method from changing the Pokemon's StoragePosition, which is needed by the GuiPC to retrieve the original position. Can be removed when PCStorageSearch will use StoragePositions instead of actual Pokemon objects
      Overrides:
      set in class PCBox
      Parameters:
      position - the position to set the pokemon
      pokemon - the pokemon to set
    • getFirstEmptyPosition

      @Nullable public StoragePosition getFirstEmptyPosition()
      Description copied from class: PokemonStorage
      Gets the first position where there is no pokemon in the storage
      Overrides:
      getFirstEmptyPosition in class PCBox
      Returns:
      the first empty position in the storage