Class: Battle::Actions::Base

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

Overview

Base class for all actions

Direct Known Subclasses

Attack, Flee, HighPriorityItem, Item, Mega, NoAction, PreAttack, Switch

Instance Method Summary collapse

Constructor Details

#initialize(scene) ⇒ Base

Creates a new action

Parameters:



8
9
# File 'docs/5_Battle_05_Actions.rb', line 8

def initialize(scene)
end

Instance Method Details

#<=>(other) ⇒ Integer

Compare this action with another

Parameters:

  • other (Base)

    other action

Returns:

  • (Integer)


13
14
# File 'docs/5_Battle_05_Actions.rb', line 13

def <=>(other)
end

#execute

Execute the action



20
21
# File 'docs/5_Battle_05_Actions.rb', line 20

def execute
end

#valid?Boolean

Tell if the action is valid

Returns:

  • (Boolean)


17
18
# File 'docs/5_Battle_05_Actions.rb', line 17

def valid?
end