class RuneRb::Engine::Action
An Event
used for handling game actions.
Attributes
player[R]
Public Class Methods
new(player, delay)
click to toggle source
Creates a new action for the player, with a specified delay.
Calls superclass method
RuneRb::Engine::Event::new
# File app/core/engine.rb, line 92 def initialize(player, delay) super delay @player = player end
Public Instance Methods
queue_policy()
click to toggle source
Gets the queue policy of this action.
# File app/core/engine.rb, line 98 def queue_policy raise "queue_policy is abstract" end
stop()
click to toggle source
Stops the action from running.
Calls superclass method
RuneRb::Engine::Event#stop
# File app/core/engine.rb, line 108 def stop super @player.action_queue.next_action end
walkable_policy()
click to toggle source
Gets the walkable policy of this action.
# File app/core/engine.rb, line 103 def walkable_policy raise "walkable_policy is abstract" end