class Natural20::MovementHelper::Movement
Attributes
acrobatics_check_locations[R]
@return [Array]
athletics_check_locations[R]
@return [Array]
budget[R]
@return [Integer]
impediment[R]
@return [Symbol]
jump_budget[R]
@return [Integer]
jump_locations[R]
@return [Array]
jump_start_locations[R]
@return [Array]
land_locations[R]
@return [Array]
movement[R]
@return [Array]
Public Class Methods
empty()
click to toggle source
@return [Natural20::Movement]
# File lib/natural_20/concerns/movement_helper.rb, line 18 def self.empty Movement.new([], 0, [], [], [], [], [], 0, 0, :nil) end
new(movement, original_budget, acrobatics_check_locations, athletics_check_locations, jump_locations, jump_start_locations, land_locations, jump_budget, budget, impediment)
click to toggle source
# File lib/natural_20/concerns/movement_helper.rb, line 4 def initialize(movement, original_budget, acrobatics_check_locations, athletics_check_locations, jump_locations, jump_start_locations, land_locations, jump_budget, budget, impediment) @jump_start_locations = jump_start_locations @athletics_check_locations = athletics_check_locations @jump_locations = jump_locations @land_locations = land_locations @jump_budget = jump_budget @movement = movement @original_budget = original_budget @acrobatics_check_locations = acrobatics_check_locations @impediment = impediment @budget = budget end
Public Instance Methods
cost()
click to toggle source
@return [Integer]
# File lib/natural_20/concerns/movement_helper.rb, line 50 def cost (@original_budget - @budget) end