Buy Sell
This commit is contained in:
34
game_balance/config.py
Normal file
34
game_balance/config.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""
|
||||
КОНФИГУРАЦИЯ БАЛАНСА ИГРЫ "КАПИТАЛ & РЫНОК"
|
||||
"""
|
||||
|
||||
|
||||
class BalanceConfig:
|
||||
# Текущий режим баланса
|
||||
BALANCE_MODE = "standard" # standard, easy, hard, tournament
|
||||
|
||||
@classmethod
|
||||
def load_balance_mode(cls, mode):
|
||||
"""Загрузка определенного режима баланса"""
|
||||
if mode == "easy":
|
||||
from game_balance.test_balance.easy_mode import EasyBalance
|
||||
return EasyBalance()
|
||||
elif mode == "hard":
|
||||
from game_balance.test_balance.hard_mode import HardBalance
|
||||
return HardBalance()
|
||||
elif mode == "tournament":
|
||||
from game_balance.test_balance.tournament import TournamentBalance
|
||||
return TournamentBalance()
|
||||
else:
|
||||
from game_balance.test_balance.standard_mode import StandardBalance
|
||||
return StandardBalance()
|
||||
|
||||
@classmethod
|
||||
def get_available_modes(cls):
|
||||
"""Возвращает список доступных режимов"""
|
||||
return {
|
||||
'standard': 'Стандартный',
|
||||
'easy': 'Легкий (новички)',
|
||||
'hard': 'Сложный (эксперты)',
|
||||
'tournament': 'Турнирный'
|
||||
}
|
||||
Reference in New Issue
Block a user