Remove Duplicate Import
This commit is contained in:
parent
cb9da3bc54
commit
0b5b1de454
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
import 'dart:html' as html;
|
import 'dart:html' as html;
|
||||||
import 'dart:math' as math;
|
import 'dart:math' as math;
|
||||||
import 'dart:math';
|
|
||||||
|
|
||||||
import 'package:rules_of_living/src/Grid.dart';
|
import 'package:rules_of_living/src/Grid.dart';
|
||||||
import 'package:rules_of_living/src/rules/GameOfLife.dart';
|
import 'package:rules_of_living/src/rules/GameOfLife.dart';
|
||||||
|
@ -20,8 +19,8 @@ class Simulation {
|
||||||
int _amount;
|
int _amount;
|
||||||
int _dispersal;
|
int _dispersal;
|
||||||
|
|
||||||
Point get gridSize => Point<int>(map.width, map.height);
|
math.Point get gridSize => math.Point<int>(map.width, map.height);
|
||||||
void set gridSize(Point<int> value) {
|
void set gridSize(math.Point<int> value) {
|
||||||
if (value.x <= 0 || value.y <= 0)
|
if (value.x <= 0 || value.y <= 0)
|
||||||
throw ArgumentError("grid size must not be smaller than 1");
|
throw ArgumentError("grid size must not be smaller than 1");
|
||||||
map = Grid(value.x, value.y);
|
map = Grid(value.x, value.y);
|
||||||
|
|
Loading…
Reference in a new issue