flutter: battle.dart 添加一些变量

This commit is contained in:
Calcitem 2020-11-15 18:32:03 +08:00
parent 43c9ae7110
commit 527f6d770e
1 changed files with 35 additions and 0 deletions

View File

@ -27,6 +27,41 @@ class Battle {
Position _position;
int _focusIndex, _blurIndex;
String sideToMove;
//
bool isInverted;
Map<String, bool> isAiPlayer = {Color.black: false, Color.white: false};
//
bool hasAnimation;
//
int durationTime;
//
static bool hasSound = true;
//
bool resignIfMostLose_ = false;
//
bool isAutoChangeFirstMove = false;
// AI
bool isAiFirstMove = false;
//
int ruleIndex;
//
String tips;
List<String> cmdlist;
String getTips() => tips;
static get shared {
_instance ??= Battle();
return _instance;