Skip to content

Instantly share code, notes, and snippets.

/switch.js
Created Nov 6, 2015

Embed
What would you like to do?
switch.js
switch (curRoom) {
case 'hallOne':
current.setCamAsString (hallOne );
current.setCam (hallOne );
current.setCurUrl (hallOne.curUrl );
current.setNextUrl (hallOne.nextUrl );
current.setTrapUrl (hallOne.trapUrl );
current.setCanCatch (hallOne.bCanCatch );
current.setCatchTime (hallOne.catchTime );
current.setUrlChangeTime (hallOne.urlChangeTime );
current.setStillUrl (hallOne.stillUrl );
current.setTrapSprung (hallOne.bTrapSprung );
current.setPotentialCaptured(hallOne.nPotentialCaptured );
current.setHasPlayed (hallOne.hasPlayed );
break ;
case 'kitchen':
current.setCamAsString (kitchen );
current.setCam (kitchen );
current.setCurUrl (kitchen.curUrl );
current.setNextUrl (kitchen.nextUrl );
current.setTrapUrl (kitchen.trapUrl );
current.setCanCatch (kitchen.bCanCatch );
current.setCatchTime (kitchen.catchTime );
current.setUrlChangeTime (kitchen.urlChangeTime );
current.setStillUrl (kitchen.stillUrl );
current.setTrapSprung (kitchen.bTrapSprung );
current.setPotentialCaptured(kitchen.nPotentialCaptured );
current.setHasPlayed (kitchen.hasPlayed );
break ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.