Package b2p.model

Interface IAction

  • All Superinterfaces:
    java.lang.Comparable<IAction>
    All Known Implementing Classes:
    BitSetAction

    public interface IAction
    extends java.lang.Comparable<IAction>
    This Interface represents an action that can be performed during the game
    Author:
    Alessandro Buldini, Alessandro Pomponio, Federico Zanini
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getFrom()
      Accesses the private field from
      java.lang.String getTo()
      Accesses the private field to
      it.unibo.ai.didattica.competition.tablut.domain.State.Turn getTurn()
      Accesses the private field turn
      int getValue()
      Accesses the private field value
      void setValue​(int value)
      Sets the value of the private field value
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Method Detail

      • getFrom

        java.lang.String getFrom()
        Accesses the private field from
        Returns:
        Value of from
      • getTo

        java.lang.String getTo()
        Accesses the private field to
        Returns:
        Value of to
      • getTurn

        it.unibo.ai.didattica.competition.tablut.domain.State.Turn getTurn()
        Accesses the private field turn
        Returns:
        Value of turn
      • getValue

        int getValue()
        Accesses the private field value
        Returns:
        Value of value
      • setValue

        void setValue​(int value)
        Sets the value of the private field value
        Parameters:
        value - is an Integer data type