示例#1
0
        public void TesteGeraItem()
        {
            GeradorItem gerador = new GeradorItem();
            Item        item    = gerador.Gerar(rnd);

            Assert.IsNotNull(item);
        }
示例#2
0
        protected override void Update(GameTime gameTime)
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }

            base.Update(gameTime);

            Window.Title = Components.Count.ToString();

            GeradorItem.Gerar(gameTime);
        }