public class CreatorGarageDoor extends Creator
The creator for the garage door structure.
  • 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.
    • 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.
    • getValidOpenDirections

      public Set<MovementDirection> getValidOpenDirections()
      Description copied from class: Creator
      Gets the list of valid open directions for this type. It returns a subset of StructureType.getValidMovementDirections() based on the current physical aspects of the Structure.
      Overrides:
      getValidOpenDirections in class Creator
      Returns:
      The list of valid open directions for this type given its current physical dimensions.
    • 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
    • completeSetOpenDirStep

      protected boolean completeSetOpenDirStep(MovementDirection direction)
      Description copied from class: Creator
      Attempts to complete the step that provides the Creator.movementDirection.

      If the open direction is not valid for this type, nothing changes.

      Overrides:
      completeSetOpenDirStep in class Creator
      Parameters:
      direction - The MovementDirection that was selected by the player.
      Returns:
      True if the Creator.movementDirection was set successfully.
    • updateRotationPoint

      protected void updateRotationPoint()
      Calculates the position of the rotation point. This should be called at the end of the process, as not all variables may be set at an earlier stage.
    • 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

      @Nullable protected final @Nullable Boolean isNorthSouthAnimated()
    • toString

      public String toString()
      Overrides:
      toString in class Creator