Ejemplo n.º 1
0
 public Map(int height, int weight, IGameObjectsList objects)
 {
     this.Width  = weight;
     this.Height = height;
     matrix      = new char[Height, Width];
     gameObjects = objects;
 }
Ejemplo n.º 2
0
 public Map(IGameObjectsList objects)
 {
     this.Width  = Config.MAP_WIDTH;
     this.Height = Config.MAP_HEIGHT;
     matrix      = new char[Height, Width];
     gameObjects = objects;
 }
Ejemplo n.º 3
0
 public Map(int height, int weight)
 {
     this.Width  = weight;
     this.Height = height;
     matrix      = new char[Height, Width];
     gameObjects = new GameObjectsList();
 }
Ejemplo n.º 4
0
        public static void GameObjectsListClassInitialize(TestContext testContext)
        {
            Debug.WriteLine("Test items initializing starts...");

            using (var mock = AutoMock.GetLoose())
            {
                goList      = mock.Create <GameObjectsList>();
                gameObject1 = mock.Create <SalaryAddition>();
                gameObject2 = mock.Create <SalaryAddition>();
                gameObject3 = mock.Create <SalaryAddition>();
            }

            bool debugIsNotNullflag = goList != null &&
                                      gameObject1 != null &&
                                      gameObject2 != null &&
                                      gameObject3 != null;

            Debug.WriteLineIf(debugIsNotNullflag, "Test items initializing complete...");
            Debug.WriteLineIf(!debugIsNotNullflag, "Test items are null...");
        }