mirror of
https://github.com/tonytins/bullseye.git
synced 2025-06-26 02:44:42 -04:00
Game model
This commit is contained in:
parent
9c707d1e47
commit
36c7e3d59b
4 changed files with 78 additions and 23 deletions
15
lib/game_model.dart
Normal file
15
lib/game_model.dart
Normal file
|
@ -0,0 +1,15 @@
|
|||
class GameModel {
|
||||
static const SLIDER_CONST = 50;
|
||||
static const SCORE_START = 0;
|
||||
static const ROUND_START = 0;
|
||||
|
||||
GameModel(this.target,
|
||||
[this.current = SLIDER_CONST,
|
||||
this.totalScore = SCORE_START,
|
||||
this.round = ROUND_START]);
|
||||
|
||||
int? target;
|
||||
int? current;
|
||||
int? totalScore;
|
||||
int? round;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue