Class TriangleCmd

All Implemented Interfaces:
Argument

public class TriangleCmd extends Subcommand
A no-arg subcommand of DebugCmd which simply toggles the normal of a selected triangle or triangles.

Aliases: tri, triangle

Typical Usage:


     debug tri     - Toggles the normal of a selected triangle
     dbg triangle  - Toggles the normal of a selected triangle
     

Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • TriangleCmd

      public TriangleCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.