Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Room interface to improve readability of environment initialization code #20

Open
MaxInertia opened this issue May 5, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@MaxInertia
Copy link
Owner

Creation of the room (static components of the scene) could be decoupled from the initialization of the scene by splitting it off into an instance of the Room interface. This will make it much easier to implement room selections by the user.

Environment could then have a method updateRoom for setting the displayed room.

def updateRoom(room: Room) {
  // If this.room is not null, remove it from the scene
  this.room = room
  // Add this.room to the scene
}

One possibility is that rooms could be dynamic, and they could be updated every frame via the same method, but with no arguments.

def updateRoom() = room.update()
@MaxInertia MaxInertia added the enhancement New feature or request label May 5, 2018
@MaxInertia MaxInertia changed the title Room interface to simplify initialization Room interface to improve readability of environment initialization code May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant