Class ValuedTurn


  • public class ValuedTurn
    extends java.lang.Object
    Tuple of (turn, value).
    • Constructor Summary

      Constructors 
      Constructor Description
      ValuedTurn​(Turn turn, float value)
      Constructs a new valued turn.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Turn getTurn()  
      float getValue()  
      java.lang.String toString()
      Formats any tuple of value and turn as (startx, starty)-(endx,endy) >>- (value) -> (shotx,shoty).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValuedTurn

        public ValuedTurn​(Turn turn,
                          float value)
        Constructs a new valued turn.
        Parameters:
        turn - the turn
        value - its value
    • Method Detail

      • getValue

        public float getValue()
      • getTurn

        public Turn getTurn()
      • toString

        public java.lang.String toString()
        Formats any tuple of value and turn as (startx, starty)-(endx,endy) >>- (value) -> (shotx,shoty).
        Overrides:
        toString in class java.lang.Object
        Returns:
        string format