public class CreatorFlag extends Creator
  • Constructor Details

  • Method Details

    • generateSteps

      protected List<Step> generateSteps() throws InstantiationException
      Description copied from class: ToolUser
      Generates the list of Steps that together will make up the ToolUser.procedure.
      Specified by:
      generateSteps in class ToolUser
      Returns:
      The list of Steps that together will make up the ToolUser.procedure.
      Throws:
      InstantiationException - When a step's factory is incomplete or otherwise invalid.
    • giveTool

      protected void giveTool()
      Description copied from class: Creator
      Method used to give the AnimatedArchitecture tool to the user.

      Overriding methods may call ToolUser.giveTool(String, String, Text).

      Specified by:
      giveTool in class Creator
    • provideSecondPos

      protected CompletableFuture<Boolean> provideSecondPos(ILocation loc)
      Description copied from class: Creator
      Provides the second location of the selection and advances the procedure if successful.
      Overrides:
      provideSecondPos in class Creator
      Parameters:
      loc - The second location of the cuboid.
      Returns:
      True if setting the location was successful.
    • completeSetRotationPointStep

      protected boolean completeSetRotationPointStep(ILocation loc)
      Description copied from class: Creator
      Attempts to complete the step in the Procedure that sets the location of the rotation point for the Structure that is being created.
      Overrides:
      completeSetRotationPointStep in class Creator
      Parameters:
      loc - The selected location of the rotation point.
      Returns:
      True if the location of the rotation point was set successfully.
    • constructStructure

      protected Structure constructStructure()
      Description copied from class: Creator
      Constructs the structure at the end of the creation process.
      Overrides:
      constructStructure in class Creator
      Returns:
      The newly-created structure.
    • isNorthSouthAnimated

      protected final boolean isNorthSouthAnimated()
      Gets whether the flag is animated along the north-south axis.
      Returns:
      True if the flag is animated along the north-south axis, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Creator