public MainScreen(int screenWidth, int screenHeight, GameCredit gameCredit) { List <Card> emptyCards = GetEmptyCards(); ScreenWidth = screenWidth; ScreenHeight = screenHeight; _gameCredit = gameCredit; _cardsControl = new CardsControl(emptyCards); _stopControl = new StopControl(emptyCards); _messageControl = new MessageControl(ScreenWidth); _controls = new List <IControl> { new BoardControl(_gameCredit), new CreditControl(ScreenWidth, ScreenHeight, _gameCredit), new ChipControl(ScreenWidth, ScreenHeight, _gameCredit), _cardsControl, _messageControl, _stopControl }; _handService = new HandService(); InitScreen(); }
public Game(int screenWidth, int screenHeight, int currentCredit, int currentChip) { ScreenWidth = screenWidth; ScreenHeight = screenHeight; _gameCredit = new GameCredit(currentCredit, currentChip); }
public ChipControl(int screenWidth, int screenHeight, GameCredit gameCredit) { ScreenWidth = screenWidth; ScreenHeight = screenHeight; _gameCredit = gameCredit; }
public BoardControl(GameCredit gameCredit) { _gameCredit = gameCredit; }