Class OpponentSet

java.lang.Object
com.mg105.entities.OpponentSet

public class OpponentSet extends Object
OpponentSet stores a potential battle on a map.
  • Constructor Details

    • OpponentSet

      public OpponentSet(@NotNull @NotNull Point position, @NotNull @NotNull List<BattleCharacter> opponents)
      Create a new set of opponents to be displayed in a room.
      Parameters:
      position - the in-room position of this OpponentSet.
      opponents - the opponents that will need to be fought.
  • Method Details

    • getPosition

      @NotNull public @NotNull Point getPosition()
      Get the position of the opponent set in the room.
      Returns:
      the position of the OpponentSet.
    • getOpponents

      @NotNull public @NotNull List<BattleCharacter> getOpponents()
      Get the opponents needed to be fought.
      Returns:
      the opponents needed to be fought to complete this battle.