block_info.dart 427 B

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