Class: Bitmapped::Commands::FillCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Bitmapped::Commands::FillCommand
- Includes:
- CommandsHelper
- Defined in:
- lib/bitmapped/commands/fill_command.rb
Instance Method Summary collapse
Methods included from CommandsHelper
#coordinates_to_array_indexes, #valid_cooridinates
Instance Method Details
#command_id ⇒ Object
10 11 12 |
# File 'lib/bitmapped/commands/fill_command.rb', line 10 def command_id "F" end |
#process_command(bitmap, input) ⇒ Object
14 15 16 17 18 |
# File 'lib/bitmapped/commands/fill_command.rb', line 14 def process_command(bitmap, input) Validators::ValidateBitmapInitialised.parse_and_validate(bitmap) column, row, color = Validators::ValidateFillInput.parse_and_validate(input) fill_command(bitmap, column, row, color) end |