public TheGameObjectManager() { marios = new IMario[Players]; blockList = new Collection <IGameObject>(); itemList = new Collection <IGameObject>(); enemyList = new Collection <IGameObject>(); pipeList = new Collection <IGameObject>(); spawnerList = new Collection <IGameObject>(); fireBallList = new Collection <IGameObject>(); fireBallList2 = new Collection <IGameObject>(); backgroundList = new Collection <IGameObject>(); animationList = new Collection <IAnimationInGame>(); collisionHandler = new AllCollisionHandler(); isSinglePlayerGame = true; curShape = new MarioState.MarioShapeEnums[Players]; nextShape_ = new MarioState.MarioShapeEnums[Players]; titleDisplayPanel = new TitleDisplayPanel(); marioLifeDisplayPanel = new MarioLifeDisplayPanel(); gameOverDisplayPanel = new GameOverDisplayPanel(); headsUpDisplayPanel = new HeadsUpDisplayPanel(); competitivePreparingDisplayPanel = new CompetitivePreparingDisplayPanel(); competitiveHeadsUpDisplayPanel = new CompetitiveHeadsUpDisplayPanel(); competitiveEndingDisplayPanel = new CompetitiveEndingDisplayPanel(); player1NameDisplayPanel = new PlayerNameDisplayPanel(); player1NameDisplayPanel.PlayerName.Text = "P1"; player2NameDisplayPanel = new PlayerNameDisplayPanel(); player2NameDisplayPanel.PlayerName.Text = "P2"; spawnManager = new SpawnManager(); }
/// <summary> /// Constructs the class /// </summary> /// <param name="displayPanel">The display panel.</param> /// <param name="readKeypadInput">The key pad input.</param> /// <param name="productRepository">The product repository.</param> /// <param name="vendingMessageRepository">The message repository.</param> public OrderPanel(IDisplayPanel displayPanel, IReadKeypadInput readKeypadInput, IProductRepository productRepository, IVendingMessageRepository vendingMessageRepository) { _vendingMessageRepository = vendingMessageRepository; _displayPanel = displayPanel; _productRepository = productRepository; _readKeypadInput = readKeypadInput; }
public GameObjectManager(Game1 Game, MarioObject Mario) { blockList = new List <IGameObject>(); itemList = new List <IGameObject>(); enemyList = new List <IGameObject>(); pipeList = new List <IGameObject>(); objectList = new List <IGameObject>(); cloudList = new List <IGameObject>(); mario = Mario; restartPoint = new Vector2(150, 200); game = Game; gameOverDisplayPanel = new GameOverDisplayPanel(game); titleDisplayPanel = new TitleDisplayPanel(); marioLifeDisplayPanel = new MarioLifeDisplayPanel(); headsUpDisplayPanel = new HeadsUpDisplayPanel(); animationList = new List <IAnimationInGame>(); winningDisplayPanel = new WinningDisplayPanel(game); }
/// <summary> /// The vending controller constructor. /// </summary> /// <param name="displayPanel">The display panel</param> /// <param name="coinReceiver">The payment module</param> /// <param name="orderPurchasePanel">The order module.</param> /// <param name="productRepository">The product repository.</param> /// <param name="walletRepository">The wallet repository.</param> /// <param name="saleRecord">Sold product logs</param> /// <param name="vendingMessageRepository">The messages repository.</param> public VendingMachineController(IDisplayPanel displayPanel, IPaymentReceiver coinReceiver, IOrderPanel orderPurchasePanel, IProductRepository productRepository, IWalletRepository walletRepository, ISoldRecord saleRecord, IVendingMessageRepository vendingMessageRepository) { _vendingMessageRepository = vendingMessageRepository; _displayPanel = displayPanel; _coinReceiver = coinReceiver; _coinReceiver.CoinAction += PaymentAction; _coinReceiver.FailtException += FailtException; _productRepository = productRepository; _walletRepository = walletRepository; _orderPurchasePanel = orderPurchasePanel; _orderPurchasePanel.OrderAction += OrderAction; _orderPurchasePanel.FailtException += FailtException; _saleRecord = saleRecord; }
/// <summary> /// Initializes the components. /// </summary> private void Initialize() { this.DisplayPanel = new DisplayPanel(this.panel1); this.Width = DisplayPanel.Left + DisplayPanel.Width + DisplayPanel.Left + 15; this.Height = DisplayPanel.Top + DisplayPanel.Height + DisplayPanel.Top + 25; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; timer = new Timer(); timer.Interval = 200; timer.Tick += timer_Tick; }
/// <summary> /// Payment coin receiver simulator /// </summary> /// <param name="displayPanel">The display panel.</param> /// <param name="readKeypadInput">The key pad input.</param> /// <param name="vendingMessageRepository">The message repositories.</param> public PaymentReceiver(IDisplayPanel displayPanel, IReadKeypadInput readKeypadInput, IVendingMessageRepository vendingMessageRepository) { _vendingMessageRepository = vendingMessageRepository; _displayPanel = displayPanel; _readKeypadInput = readKeypadInput; }
public DisplayManager(IDisplayPanel panel) { this.DisplayPanel = panel; registery = new Dictionary<Fragment, Block>(); }