Esempio n. 1
0
        public WallMatrix(IViewFactory i_Factory)
            : base(i_Factory)
        {
            for(int i = 0; i < k_NumberOfWalls; i++)
            {
                r_Walls[i] = new Wall(ViewFactory);
            }

            // CreateView(ViewFactory.CreateComponent());
        }
Esempio n. 2
0
        private void init(int i_Columns)
        {
            Clear();
            Add(new StaryBackground(Game, this));
            m_Score = new ScoreDisplay(r_Factory);

            m_BlueShip = new BlueShip(r_Factory);
            m_BlueShip.ShipHit += MarsIntruders_ShipHit;
            m_BlueShip.ScoreChanged += MarsIntruders_ScoreChanged;

            m_GreenShip = new GreenShip(r_Factory);
            m_GreenShip.ShipHit += MarsIntruders_ShipHit;
            m_GreenShip.ScoreChanged += MarsIntruders_ScoreChanged;

            m_Lives = new LivesMatrix(r_Factory, 3);

            m_Wall = new Wall(r_Factory);

            m_MotherShip = new MotherShip(r_Factory);

            m_Monsters = new EnemyMatrixLogic(r_Factory, i_Columns);
            m_Monsters.MatrixChanged += MarsIntruders_MatrixChanged;
        }