Class: Core::States::BattleState
Instance Attribute Summary
Attributes inherited from State
#window, #x, #y
Instance Method Summary
collapse
Methods inherited from State
#draw_cursor, #finish, #update_cursor
Constructor Details
#initialize(party, enemies, bg, ctrl) ⇒ BattleState
Returns a new instance of BattleState.
140
141
142
143
|
# File 'lib/states/states.rb', line 140
def initialize(party, enemies, bg, ctrl)
super(Core.window)
@battle = Core::Game::Combat::Battle.new(party, enemies, bg, ctrl)
end
|
Instance Method Details
148
149
150
151
|
# File 'lib/states/states.rb', line 148
def draw
super
@battle.draw
end
|
144
145
146
147
|
# File 'lib/states/states.rb', line 144
def update
super
@battle.update
end
|