예제 #1
0
        /// <summary>
        /// writeProfilSteuerung(Dictionary parameter) verändert/setzt und
        /// speichert die Parameter
        /// </summary>
        public void writeProfilSteuerung(Dictionary <string, object> parameter)
        {
            //Übergabe der Werte
            CurrentProfil.Translation        = (float)parameter["Translation"];
            CurrentProfil.Acceleration       = (float)parameter["Acceleration Level"];
            CurrentProfil.Brake              = (float)parameter["Brake"];
            CurrentProfil.Banking            = (float)parameter["Banking"];
            CurrentProfil.Drift              = (float)parameter["Drift"];
            CurrentProfil.AutoLevel          = (float)parameter["Auto Level"];
            CurrentProfil.Rolling            = (float)parameter["Rolling"];
            CurrentProfil.mouseIntensity     = (float)parameter["Mouse Intensity"];
            CurrentProfil.PlayerFirePrim     = (MouseButton)parameter["Primary Fire"];
            CurrentProfil.PlayerFireSek      = (MouseButton)parameter["Secondary Fire"];
            CurrentProfil.PlayerLeftDrift    = (Keys)parameter["Left Drift"];
            CurrentProfil.PlayerRightDrift   = (Keys)parameter["Right Drift"];
            CurrentProfil.PlayerBrake        = (Keys)parameter["Brakes"];
            CurrentProfil.PlayerAcceleration = (Keys)parameter["Acceleration"];
            CurrentProfil.PlayerBoost        = (Keys)parameter["Boost"];
            CurrentProfil.PlayerPrimWeapon1  = (Keys)parameter["Primary Weapon 1"];
            CurrentProfil.PlayerPrimWeapon2  = (Keys)parameter["Primary Weapon 2"];
            CurrentProfil.PlayerSekWeapon1   = (Keys)parameter["Secondary Weapon 1"];
            CurrentProfil.PlayerSekWeapon2   = (Keys)parameter["Secondary Weapon 2"];

            //Speicherung für Konsistenz
            CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
        }
예제 #2
0
        /// <summary>
        /// writeProfilSpielereinstellungen(Dictionary parameter) verändert/setzt und
        /// speichert die Parameter
        /// </summary>
        public void writeProfilSpielereinstellungen(Dictionary <string, object> parameter)
        {
            //Delivery the values
            CurrentProfil.Difficult  = (int)parameter["Difficult"];
            CurrentProfil.Playername = (string)parameter["Playername"];

            //Securesave for consistency
            CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
        }
예제 #3
0
        /// <summary>
        /// writeProfilSound(Dictionary parameter) verändert/setzt und
        /// speichert die Parameter
        /// </summary>
        public void writeProfilSound(Dictionary <string, object> parameter)
        {
            //Übergabe der Werte
            CurrentProfil.Music  = (float)parameter["Music"];
            CurrentProfil.Effect = (float)parameter["Effect"];
            CurrentProfil.Sound  = (bool)parameter["Sound"];

            //Speicherung für Konsistenz
            CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
        }
예제 #4
0
        /// <summary>
        /// writeProfilGleiter(string Name) set Player´s model
        /// </summary>
        /// <param name="Name">name of the model</param>
        public void writeProfilGleiter(string Name, int shield, int speed, int health, int fuel)
        {
            CurrentProfil.Model  = Name;
            CurrentProfil.Shield = shield;
            CurrentProfil.Speed  = speed;
            CurrentProfil.Health = health;
            CurrentProfil.Fuel   = fuel;

            //Securesave for consistency
            CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
        }
예제 #5
0
        /// <summary>
        /// writeProfilGrafik(Dictionary parameter) verändert/setzt und
        /// speichert die Parameter
        /// </summary>
        public void writeProfilGrafik(Dictionary <string, object> parameter)
        {
            //Übergabe der Werte
            CurrentProfil.Resolution   = (string)parameter["Resolution"];
            CurrentProfil.Shadow       = (bool)parameter["Shadow"];
            CurrentProfil.Fog          = (bool)parameter["Fog"];
            CurrentProfil.Detail       = (float)parameter["Detail"];
            CurrentProfil.Fullscreen   = (bool)parameter["Fullscreen"];
            CurrentProfil.AntiAliasing = (string)parameter["Anti Aliasing"];

            //Speicherung für Konsistenz
            CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
        }
예제 #6
0
        /// <summary>
        /// deleteProfil() setzt die veränderbaren Werte auf ihren Default-Wert
        /// </summary>
        public void deleteProfil()
        {
            //veränderbaren Werte
            CurrentProfil.ProfilName         = "---";
            CurrentProfil.Active             = false;
            CurrentProfil.OnlineHighscore    = false;
            CurrentProfil.OnlineQuestion     = false;
            CurrentProfil.Difficult          = 1;
            CurrentProfil.Resolution         = "1024x768";
            CurrentProfil.Shadow             = true;
            CurrentProfil.Fog                = true;
            CurrentProfil.Detail             = 0.5f;
            CurrentProfil.Fullscreen         = false;
            CurrentProfil.AntiAliasing       = "0x";
            CurrentProfil.Music              = 0.3f;
            CurrentProfil.Effect             = 1.0f;
            CurrentProfil.Sound              = true;
            CurrentProfil.Playername         = "Playername";
            CurrentProfil.Model              = "Starfighter";
            CurrentProfil.Health             = 100;
            CurrentProfil.Speed              = 410;
            CurrentProfil.Shield             = 80;
            CurrentProfil.Fuel               = 500;
            CurrentProfil.Translation        = 0.5f;
            CurrentProfil.Acceleration       = 10f;
            CurrentProfil.Brake              = 10f;
            CurrentProfil.Banking            = 0.01f;
            CurrentProfil.Drift              = 0.01f;
            CurrentProfil.AutoLevel          = 0.05f;
            CurrentProfil.Rolling            = 0.8f;
            CurrentProfil.mouseIntensity     = -0.001f;
            CurrentProfil.PlayerFirePrim     = MouseButton.Left;
            CurrentProfil.PlayerFireSek      = MouseButton.Right;
            CurrentProfil.PlayerLeftDrift    = Keys.A;
            CurrentProfil.PlayerRightDrift   = Keys.D;
            CurrentProfil.PlayerBrake        = Keys.S;
            CurrentProfil.PlayerAcceleration = Keys.W;
            CurrentProfil.PlayerBoost        = Keys.Space;
            CurrentProfil.PlayerPrimWeapon1  = Keys.D1;
            CurrentProfil.PlayerPrimWeapon2  = Keys.D2;
            CurrentProfil.PlayerSekWeapon1   = Keys.D3;
            CurrentProfil.PlayerSekWeapon2   = Keys.D4;

            question = false;

            //Speicherung (für Konsistenz)
            CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
        }
예제 #7
0
 private void writeOnline()
 {
     CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
 }
예제 #8
0
 private void writePlayer()
 {
     CurrentProfil.Save("Profils\\Profil" + CurrentNumber + ".xml");
 }