From 9b2b5f3e55060bd500e1af6eb9faff7492d1272e Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 17 Oct 2018 21:00:14 +0200 Subject: [PATCH] Remove unnecessary Simulation variables --- lib/src/Simulation.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/src/Simulation.dart b/lib/src/Simulation.dart index 05db54b..bfdfa2c 100644 --- a/lib/src/Simulation.dart +++ b/lib/src/Simulation.dart @@ -14,11 +14,8 @@ class Simulation { bool _renderEdges = true; int _startingSeed; - int _x; - int _y; int _amount; int _dispersal; - CellPattern _pattern; int get w => map.width; int get h => map.height; @@ -42,11 +39,8 @@ class Simulation { int seed}) { _startingSeed = seed ?? DateTime.now().millisecondsSinceEpoch; math.Random rng = new math.Random(_startingSeed); - _x = x; - _y = y; _amount = amount ?? rng.nextInt(20); _dispersal = dispersal ?? 10; - _pattern = pattern; int cx = x ?? rng.nextInt(map.width ~/ 3) + (map.width ~/ 3); int cy = y ?? rng.nextInt(map.height ~/ 3) + (map.height ~/ 3); switch (pattern) {