예제 #1
0
        public static void Actor()
        {
            int  key;
            bool tmp = true;

            while (tmp)
            {
                PrintCMD.MenuItem(2);
                key = PrintCMD.ReadKey();
                switch (key)
                {
                case 1:
                    _controllActor.Read();
                    break;

                case 2:
                    _controllActor.Create();
                    break;

                case 3:
                    _controllActor.Update();
                    break;

                case 4:
                    _controllActor.Delete();
                    break;

                case 0:
                    tmp = false;
                    break;
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Zostawiam to ale wymaga ogólnie modyfikacji myśle ze kamera mogła by być singletonem ten jeden raz(mam nadzieje)
        /// Czyli wyjebac ten parametr clickPos
        /// </summary>
        /// <param name="gameTime"></param>
        public void Update(GameTime gameTime, Vector3 clickPos)
        {
            _controll.Update(clickPos);


            if (AliveBoiiii == true)
            {
                this.Position += this.Forward * Speed * _controll.GroundSpeed;
                ((Engine.GameUtility.Physic.Point)CollisionObject).Position = this.Position;
            }
        }
예제 #3
0
        public static void Film()
        {
            int  key;
            bool tmp = true;

            while (tmp)
            {
                PrintCMD.MenuItem(3);
                key = PrintCMD.ReadKey();
                switch (key)
                {
                case 1:
                    _controllFilm.Read();
                    break;

                case 2:
                    _controllFilm.Create();
                    break;

                case 3:
                    _controllFilm.Update();
                    break;

                case 4:
                    _controllFilm.Delete();
                    break;

                case 5:
                    _controllFilm.Search();
                    break;

                case 0:
                    tmp = false;
                    break;
                }
            }
        }
예제 #4
0
        public void Update(GameTime gameTime)
        {
            _controll.Update(gameTime, this);

            this.Position += this.Forward * speed * _controll.GroundSpeed;
        }