27 lines
596 B
Lua
27 lines
596 B
Lua
state_ironman=klass()
|
|
function state_ironman:init(ruleset)
|
|
self.level=1
|
|
end
|
|
|
|
function state_ironman:enter() self:on_enter() end
|
|
function state_ironman:exit() end
|
|
|
|
function state_ironman:reenter() self:on_enter() end
|
|
function state_ironman:suspend() end
|
|
|
|
function state_ironman:on_enter()
|
|
self.done=true
|
|
local level=self.level
|
|
self.level+=1
|
|
if level <= #progression then
|
|
print("adding another state")
|
|
main.state_manager:push(state_gameround:new(progression[level]))
|
|
end
|
|
end
|
|
|
|
function state_ironman:update()
|
|
assert(false,"wtf")
|
|
end
|
|
function state_ironman:draw()
|
|
assert(false,"wtf2")
|
|
end |