Ejemplo n.º 1
0
        internal void Update(GameTime gameTime)
        {
            if (cs != null)
            {
                if (Input.MouseClicked)
                {
                    if (toBuild == BuildingType.Holzfäller)
                    {
                        Holzfäller b = new Holzfäller();
                        b.PlaceOnMap(map, cs.GetCells());
                        cs = null;
                    }
                }
            }


            if (Keyboard.GetState().IsKeyDown(Keys.D1))
            {
                cs      = new CellSelection(map, 2, 2);
                toBuild = BuildingType.Holzfäller;
            }


            if (cs != null)
            {
                cs.Update(gameTime);
            }
        }