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; }
public void setUp() { m_Factory = new MockViewFactory(176, 200, k_SpriteWidth, k_SpriteWidth); m_MatrixLogic = new EnemyMatrixLogic(m_Factory); m_MatrixLogic.Initialize(); }