Esempio n. 1
0
        private void AddWaterElement(IGameObjectElement element)
        {
            if (this.Water.Elements.Contains(element))
            {
                throw new InvalidOperationException("Water element already added");
            }

            this.Water.Elements.Add(element);
            this.Battlefield[element.Position] = element;
        }
        public IBattlefield CreateBattleField()
        {
            var map = new IGameObjectElement[Battlefield.DefaultHeight, Battlefield.DefaultWidth];

            return(new Battlefield(map));
        }