Class MagellanBattleImpl

    • Constructor Detail

      • MagellanBattleImpl

        public MagellanBattleImpl​(CoordinateID id)
        Create an empty Battle object with the specified id.
        Parameters:
        id - an unique identifier for this battle.
      • MagellanBattleImpl

        public MagellanBattleImpl​(CoordinateID id,
                                  boolean spec)
        Create an empty Battle object with the specified id.
        Parameters:
        id - an unique identifier for this battle.
        spec - indicates that the CR representation of this battle is a BATTLESPEC block in the computer report.
    • Method Detail

      • messages

        public java.util.List<Message> messages()
        Get the messages of this battle.
        Specified by:
        messages in interface Battle
        Returns:
        a reference to the list of messages stored for this battle. This value is never null.
      • setBattleSpec

        public void setBattleSpec​(boolean bool)
        Sets whether the CR representation of this battle is a standard BATTLE block or a BATTLESPEC block.
        Specified by:
        setBattleSpec in interface Battle
        Parameters:
        bool - set true to mark it as BATTLESPEC block, false to mark as standard BATTLE block.
      • isBattleSpec

        public boolean isBattleSpec()
        Check if the Battle object is a BATTLESPEC or BATTLE block.
        Specified by:
        isBattleSpec in interface Battle
        Returns:
        true if the CR representation of this battle is a BATTLESPEC block, false if it's a standard BATTLE block.