Class: Battle::Actions::PreAttack

Inherits:
Base show all
Defined in:
docs/5_Battle_05_Actions.rb

Overview

Class describing the Pre Attacks Action

Instance Method Summary collapse

Methods inherited from Base

#valid?

Constructor Details

#initialize(scene, attack_actions) ⇒ PreAttack

Create a new attack action

Parameters:



82
83
# File 'docs/5_Battle_05_Actions.rb', line 82

def initialize(scene, attack_actions)
end

Instance Method Details

#<=>(other) ⇒ Integer

Compare this action with another

Parameters:

  • other (Base) —

    other action

Returns:

  • (Integer)


87
88
# File 'docs/5_Battle_05_Actions.rb', line 87

def <=>(other)
end

#execute

Execute the action



90
91
# File 'docs/5_Battle_05_Actions.rb', line 90

def execute
end