part of 'game_state.dart'; // ignore_for_file: library_private_types_in_public_api class FigureState { List _conditions = []; List get conditions => _conditions; int _level = 1; int _health = 0; int _maxHealth = 0; int _chill = 0; int _plague = 0; final Set _conditionsAddedThisTurn = {}; final Set _conditionsAddedPreviousTurn = {}; int get level => _level; int get health => _health; int get maxHealth => _maxHealth; int get chill => _chill; int get plague => _plague; BuiltSet get conditionsAddedThisTurn => BuiltSet.of(_conditionsAddedThisTurn); BuiltSet get conditionsAddedPreviousTurn => BuiltSet.of(_conditionsAddedPreviousTurn); void setHealth(_StateModifier _, int value) { _health = value; } void setFigureLevel(_StateModifier _, int value) { _level = value; } void setMaxHealth(_StateModifier _, int value) { _maxHealth = value; } void setChill(_StateModifier _, int value) { _chill = value; } void setPlague(_StateModifier _, int value) { _plague = value; } void setConditions(_StateModifier _, List value) { _conditions = value; } void addToConditionsThisTurn(_StateModifier _, Condition condition) { _conditionsAddedThisTurn.add(condition); } void removeFromConditionsThisTurn(_StateModifier _, Condition condition) { _conditionsAddedThisTurn.remove(condition); } void removeFromConditionsPreviousTurn(_StateModifier _, Condition condition) { _conditionsAddedPreviousTurn.remove(condition); } }