block_info.dart 387 B

12345678910111213141516171819
  1. class BlockInfo {
  2. BlockInfo({this.value, this.current, this.before, this.isNew = true}) {
  3. this.before = this.before == null ? this.current : this.before;
  4. }
  5. int value;
  6. int current;
  7. int before;
  8. bool needMove = false;
  9. bool needCombine = false;
  10. bool isNew = false;
  11. void reset() {
  12. value = 0;
  13. needMove = false;
  14. needCombine = false;
  15. isNew = false;
  16. }
  17. }