Package 

Class ShipAiAction

  • All Implemented Interfaces:
    com.dp.advancedgunnerycontrol.combatgui.buttongroups.ButtonGroupAction

    
    public final class ShipAiAction
     implements ButtonGroupAction
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ShipAiAction(ShipAPI ship)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit execute(List<Object> data, Object selectedButtonData, Object deselectedButtonData) this method will get called when a button in this button group gets clicked by the user
      • Methods inherited from class com.dp.advancedgunnerycontrol.combatgui.agccombatgui.ShipAiAction

        onHover
      • Methods inherited from class java.lang.Object

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

      • ShipAiAction

        ShipAiAction(ShipAPI ship)
    • Method Detail

      • execute

         Unit execute(List<Object> data, Object selectedButtonData, Object deselectedButtonData)

        this method will get called when a button in this button group gets clicked by the user

        Parameters:
        data - list of data of all currently active buttons (maybe empty)
        selectedButtonData - data of the button that was clicked if it was selected (null if button was deselected)
        deselectedButtonData - data of the button that was clicked if it was deselected (null if button was selected)