public void setUp() { m_Factory = new MockViewFactory(140, 100, k_ShipSize, k_ShipSize); m_Ship = new Ship(m_Factory); m_Ship.Initialize(); }
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; }