block_info.dart 478 B

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