Class: Battle::Actions::PreAttack

Inherits:
Base show all
Defined in:
docs/01600_Alpha_25_Battle_Engine_03000_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:



80
81
# File 'docs/01600_Alpha_25_Battle_Engine_03000_Actions.rb', line 80

def initialize(scene, attack_actions)
end

Instance Method Details

#<=>(other) ⇒ Integer

Compare this action with another

Parameters:

  • other (Base)

    other action

Returns:

  • (Integer)


85
86
# File 'docs/01600_Alpha_25_Battle_Engine_03000_Actions.rb', line 85

def <=>(other)
end

#execute

Execute the action



88
89
# File 'docs/01600_Alpha_25_Battle_Engine_03000_Actions.rb', line 88

def execute
end