package Ġcom . ascending . games . id 1 . view . board Ċ Ċ import Ġcom . ascending . games . id 1 . D ungeon Creator Game Ċ import Ġcom . ascending . games . id 1 . edit . board . Board Domain Ċ import Ġcom . ascending . games . id 1 . edit . board . Default Room Factory Ċ import Ġcom . ascending . games . id 1 . edit . board . action . room . Gesture Action Provider Ċ import Ġcom . ascending . games . id 1 . model . board . Board Ċ import Ġcom . ascending . games . id 1 . model . world . Location Ċ import Ġcom . ascending . games . id 1 . model . world . Player Ċ import Ġcom . ascending . games . id 1 . view . me chan ics . Stats View Ċ import Ġcom . ascending . games . id 1 . view . world . World Screen Ċ import Ġcom . ascending . games . engine . model . geometry . Coord 2 Ċ import Ġcom . badlogic . gdx . G dx Ċ import Ġcom . badlogic . gdx . Screen Ċ import Ġcom . badlogic . gdx . input . Gesture Detector Ċ import Ġcom . badlogic . gdx . scenes . scene 2 d . Stage Ċ Ċ class ĠBoard Screen ( private Ġval Ġgame Ġ: ĠD ungeon Creator Game , Ġlevel Ġ: ĠInt ) Ġ: ĠScreen Ġ{ ĊĠĠĠ Ġprivate Ġval Ġplayer Ġ= Ġgame . save Resource . contents [ 0 ] Ġas ĠPlayer ĊĠĠĠ Ġprivate Ġval Ġskin Ġ= Ġgame . skin ĊĠĠĠ Ġprivate Ġval Ġui Stage Ġ= ĠStage () ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠBO ARD _ SIZE Ġ= ĠCoord 2 ( 1 2 , Ġ 1 9 ) ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠTH RESH OLD Ġ= Ġ 1 f ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġboard Ġ= ĠBoard ( BOARD _ SIZE . x , ĠBO ARD _ SIZE . y ) ĊĠĠĠ Ġprivate Ġval Ġboard Domain Ġ= ĠBoard Domain ( board , Ġplayer , Ġlevel , ĠDefault Room Factory . create Default Room Factory ( level )) ĊĠĠĠ Ġprivate Ġval Ġboard View Ġ= ĠBoard View ( board , Ġgame . toolkit ) ĊĠĠĠ Ġprivate Ġval Ġroom Pool View Ġ= ĠRoom Pool View ( board Domain . room Pool , Ġgame . toolkit ) ĊĠĠĠ Ġprivate Ġval Ġgesture Action Provider Ġ= ĠGest ure Action Provider () ĊĠĠĠ Ġprivate Ġvar Ġcurrent Room View Ġ= ĠProject ed Room View ( board Domain . project ed Room , Ġboard View . shape Renderer ) ĊĊĠĠĠ Ġprivate Ġval Ġstats View Ġ= ĠStats View ( board . hero . stats , Ġui Stage , Ġskin ) ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠG dx . input . input Processor Ġ= Ġui Stage ĊĊĠĠĠĠĠĠĠ Ġboard Domain . on Project ed Room Changed Ġ+= Ġ{ Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . remove ( current Room View ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcurrent Room View Ġ= ĠProject ed Room View ( board Domain . project ed Room , Ġboard View . shape Renderer ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . add ( current Room View ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġboard Domain . on Board Finished Ġ+= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġgame . screen Ġ= ĠWorld Screen ( game , ĠLocation . D UN GE ON ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhide () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdispose () Ġ{ ĊĠĠĠĠĠĠĠ Ġboard View . dispose () ĊĠĠĠĠĠĠĠ Ġui Stage . dispose () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġresize ( width : ĠInt , Ġheight : ĠInt ) Ġ{ ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġresume () Ġ{ ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġpause () Ġ{ ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrender ( delta : ĠFloat ) Ġ{ ĊĠĠĠĠĠĠĠ Ġui Stage . act ( delta ) ĊĠĠĠĠĠĠĠ Ġui Stage . draw () ĊĊĠĠĠĠĠĠĠ Ġif Ġ( delta Ġ> ĠTH RESH OLD ) Ġreturn ĊĊĠĠĠĠĠĠĠ Ġboard Domain . update ( delta ) ĊĠĠĠĠĠĠĠ Ġgesture Action Provider . action Buffer . forEach Ġ{ Ġboard Domain . execute ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġgesture Action Provider . action Buffer . clear () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow () Ġ{ ĊĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . add ( board View ) ĊĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . add ( current Room View ) ĊĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . add ( room Pool View ) ĊĠĠĠĠĠĠĠ ĠG dx . input . input Processor Ġ= ĠGest ure Detector ( gesture Action Provider ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġhide () Ġ{ ĊĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . remove ( board View ) ĊĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . remove ( current Room View ) ĊĠĠĠĠĠĠĠ Ġgame . toolkit . scene Manager . views . remove ( room Pool View ) ĊĠĠĠ Ġ} Ċ }