Class: UI::Storage::CursorHandler

Inherits:
Object
  • Object
show all
Defined in:
docs/4_Systems_200_Storage.rb

Overview

Class that handle all the logic related to cursor movement between each party of the UI

Instance Method Summary collapse

Constructor Details

#initialize(cursor) ⇒ CursorHandler

Create a cusor handler

Parameters:



461
462
# File 'docs/4_Systems_200_Storage.rb', line 461

def initialize(cursor)
end

Instance Method Details

#indexInteger

Get the index of the cursor

Returns:

  • (Integer)


469
470
# File 'docs/4_Systems_200_Storage.rb', line 469

def index
end

#modeSymbol

Get the cursor mode

Returns:

  • (Symbol)

    :box, :party, :box_choice



465
466
# File 'docs/4_Systems_200_Storage.rb', line 465

def mode
end

#move_downBoolean

Move the cursor down

Returns:

  • (Boolean)

    if the action was a success



485
486
# File 'docs/4_Systems_200_Storage.rb', line 485

def move_down
end

#move_leftBoolean

Move the cursor to the left

Returns:

  • (Boolean)

    if the action was a success



477
478
# File 'docs/4_Systems_200_Storage.rb', line 477

def move_left
end

#move_rightBoolean

Move the cursor to the right

Returns:

  • (Boolean)

    if the action was a success



473
474
# File 'docs/4_Systems_200_Storage.rb', line 473

def move_right
end

#move_upBoolean

Move the cursor up

Returns:

  • (Boolean)

    if the action was a success



481
482
# File 'docs/4_Systems_200_Storage.rb', line 481

def move_up
end