Created
December 19, 2019 12:16
-
-
Save Dev-Owl/c9a3ada5f862bd6e20dc52a39fb720fe to your computer and use it in GitHub Desktop.
view for maze ball game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
import 'package:mazeball/Views/base/viewSwtichMessage.dart'; | |
import 'package:mazeball/Views/viewManager.dart'; | |
enum GameView { | |
MainMenuBackground, | |
Playing, | |
Win, | |
Options, | |
} | |
abstract class BaseView { | |
bool active = false; | |
final GameView _view; | |
final ViewManager _viewManager; | |
GameView get view => _view; | |
ViewManager get viewManager => _viewManager; | |
BaseView(this._view,this._viewManager); | |
void setActive({ViewSwitchMessage message}); | |
void moveToBackground({ViewSwitchMessage message}); | |
void render(Canvas c); | |
void update(double t); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment