CS-Coursework/website/screens/screenmanager.js

19 lines
276 B
JavaScript
Raw Normal View History

2022-10-10 14:05:09 +01:00
class ScreenManager {
constructor() {
2022-10-11 09:45:40 +01:00
this.textbox;
this.timer;
this.screen;
2022-10-10 14:05:09 +01:00
}
draw() {
2022-10-11 09:45:40 +01:00
this.screen.draw();
}
setScreen(pScreen) {
this.screen = pScreen;
}
getScreen() {
return this.screen;
2022-10-10 14:05:09 +01:00
}
}