Package com.mg105.entities
Class OpponentSet
java.lang.Object
com.mg105.entities.OpponentSet
OpponentSet stores a potential battle on a map.
-
Constructor Summary
ConstructorDescriptionOpponentSet
(@NotNull Point position, @NotNull List<BattleCharacter> opponents) Create a new set of opponents to be displayed in a room. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<BattleCharacter>
Get the opponents needed to be fought.@NotNull Point
Get the position of the opponent set in the room.
-
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
Get the position of the opponent set in the room.- Returns:
- the position of the OpponentSet.
-
getOpponents
Get the opponents needed to be fought.- Returns:
- the opponents needed to be fought to complete this battle.
-