Пример #1
0
        ModelEntity InitiateLetter(int letter)
        {
            ModelEntity letterModel = new ModelEntity(Game, TheCamera, WordXNAModels[letter]);

            letterModel.Moveable   = false;
            letterModel.ModelScale = new Vector3(Scale);
            letterModel.PO.AddAsChildOf(this);

            return(letterModel);
        }
Пример #2
0
        public Person(Game game, Camera camera, GameLogic gameLogic) : base(game, camera)
        {
            LogicRef = gameLogic;

            for (int i = 0; i < 2; i++)
            {
                Arms[i] = new ModelEntity(game, camera);
                Legs[i] = new ModelEntity(game, camera);
            }
        }
Пример #3
0
        ModelEntity InitiateNumber(int number)
        {
            if (number < 0)
            {
                number = 0;
            }

            ModelEntity digit = new ModelEntity(Game, TheCamera, NumberModels[number]);

            digit.Moveable   = false;
            digit.ModelScale = new Vector3(Scale);
            digit.PO.AddAsChildOf(this);

            return(digit);
        }
Пример #4
0
        public Player(Game game, Camera camera, GameLogic gameLogic) : base(game, camera, gameLogic)
        {
            LogicRef = gameLogic;
            Camera swCamera = new Camera(game, new Vector3(0, 0, 100), new Vector3(0, MathHelper.Pi, 0),
                                         GraphicsDevice.Viewport.AspectRatio, 90f, 110f);

            TheSteeringWheel = new SteeringwheelUI(game, swCamera, gameLogic);

            Turret = new ModelEntity(game, camera);

            for (int i = 0; i < 2; i++)
            {
                FrontTires[i] = new ModelEntity(game, camera);
                RearTires[i]  = new ModelEntity(game, camera);
            }
        }
Пример #5
0
 void RemoveNumber(ModelEntity numberE)
 {
     NumberEntities.Remove(numberE);
 }