public UI(Solarsystem handler, Point position, CelestialBody planet) { InitializeComponent(); Handler = handler; Position = position; Planet = planet; }
public Observer(Solarsystem handler, GraphicsDevice device, string name) { Handler = handler; Device = device; Camera = new Camera(Handler, Device, new Vector3(0, 3945000, 0), .0008f, 9000.0f); Name = name; InputManager = new InputManager(); InputManager.BindKey(new Key(Keys.W, false), new KeyAction(new Action(() => { Camera.Move(new Vector3(0, 0, -1)); }), new Action(() => { }))); InputManager.BindKey(new Key(Keys.A, false), new KeyAction(new Action(() => { Camera.Move(new Vector3(-1, 0, 0)); }), new Action(() => { }))); InputManager.BindKey(new Key(Keys.S, false), new KeyAction(new Action(() => { Camera.Move(new Vector3(0, 0, 1)); }), new Action(() => { }))); InputManager.BindKey(new Key(Keys.D, false), new KeyAction(new Action(() => { Camera.Move(new Vector3(1, 0, 0)); }), new Action(() => { }))); Handler.SetInputManager(InputManager); }
public StandardAmmo(Solarsystem handler, GraphicsDevice device, Camera camera) { Device = device; Handler = handler; Camera = camera; AmmoModel = Handler.Content.Load <Model>(@"Eastereggs\M4A1\Bullet"); }
public NetworkAPI(Solarsystem handler, string server, string directory, string @class) { Handler = handler; Webserver = server; RootDirectory = directory; Class = @class; }
public SmartphoneControl(Solarsystem handler, string server, string dir, string file, string key) { privateHandler = handler; APIServer = server; APIRootDirectory = dir; APIFile = file; Key = key; QRCode = ""; }
public Camera(Solarsystem handler, GraphicsDevice device_g, Vector3 spawn_vec3, float mouse_sensity, float velocity) { Handler = handler; Device = device_g; CameraPosition = -spawn_vec3; MouseSensity = mouse_sensity; Velocity = velocity; ProjectionsMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, Device.Viewport.AspectRatio, 0.01f, 1500000.0f); Flush(); }
public SpeechRecognizer(Solarsystem handler) { this.Handler = handler; this.CommandList = new Dictionary <string, Action>(); speechRecognizer = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("de-DE")); speechRecognizer.SetInputToDefaultAudioDevice(); recognizerChoices = new Choices(); recognizerChoices.Add(new string[] { "Erneut" }); }
public M4A1(Solarsystem handler, GraphicsDevice device, Observer player) { isAiming = false; hasShot = false; Handler = handler; Device = device; Player = player; Camera = Player.Camera; Magazine = new List <Ammunition.StandardAmmo>(); }
public Sun(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Focus; RenderWithBloom = true; Size = 200000; NumericEccentricity = 0; PlanetMass = CelestialBody.SUN_G / CelestialBody.GRAVITATIONCONSTANT; TurnAroundTime = 0; IsAllowedToRender = true; LoadContent(); }
public CelestialBody(Solarsystem handler, GraphicsDevice device, Camera camera) { Handler = handler; Device = device; Camera = camera; TexturePath = @"Textures\" + this.GetType().Name + "Color"; ModelPath = @"CelestialBody\celestialbody"; Name = this.GetType().Name; Sign = 1; }
public Mars(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 6800; NumericEccentricity = 0.0935f; TurnAroundTime = 59355072.0f; PlanetMass = 6.39E23; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 0.1; PortionY = 0.99; PortionZ = 0.01; InstancedEllipse = new InstancedEllipse(Handler, Camera, 35, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip; LoadContent(); }
public Saturn(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 130500; NumericEccentricity = 0.05648f; TurnAroundTime = 928735200.0f; PlanetMass = 5.683E26; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 7; PortionY = 0.9; PortionZ = 0.03; InstancedEllipse = new InstancedEllipse(Handler, Camera, 1500, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList; LoadContent(); }
public Uranus(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 25550 * 2; NumericEccentricity = 0.0472f; TurnAroundTime = 2649370896.0f; PlanetMass = 8.683E25; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 7; PortionY = 0.9; PortionZ = 0.06; InstancedEllipse = new InstancedEllipse(Handler, Camera, 1500, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList; LoadContent(); }
public Pluto(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 23000; NumericEccentricity = 0.2488f; TurnAroundTime = 7831375200.0f; PlanetMass = 1.27E22; PhysicsScale = 2400000; DeltaTime = 60 * 60 * 24 * 7; PortionY = 0.8; PortionZ = 0.4; InstancedEllipse = new InstancedEllipse(Handler, Camera, 1500, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList; LoadContent(); }
public Neptun(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 49500; NumericEccentricity = 0.0113f; TurnAroundTime = 5196817440.0f; PlanetMass = 1.024E26; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 7; PortionY = 0.95; PortionZ = 0.2; InstancedEllipse = new InstancedEllipse(Handler, Camera, 1500, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList; LoadContent(); }
public Jupiter(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 143000; NumericEccentricity = 0.0484f; TurnAroundTime = 374112000.0f; PlanetMass = 1.898E27; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 7; PortionY = 0.98; PortionZ = 0.09; InstancedEllipse = new InstancedEllipse(Handler, Camera, 1500, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList; LoadContent(); }
public Merkur(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 4900; NumericEccentricity = 0.20563069f; TurnAroundTime = 7600521.6f; PlanetMass = 3.285E23; PhysicsScale = 1900000; DeltaTime = 60 * 60 * 24 * 0.1; PortionY = 0.9; PortionZ = 0.06; InstancedEllipse = new InstancedEllipse(Handler, Camera, 35, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip; LoadContent(); }
public Venus(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 6050 * 2; NumericEccentricity = 0.0067f; TurnAroundTime = 19414166.4f; PlanetMass = 4.869E24; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 7 * 0.01; PortionY = 0.99; PortionZ = 0.01; InstancedEllipse = new InstancedEllipse(Handler, Camera, 35, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip; LoadContent(); Sign = -1; }
public Halleyscher_Komet(Solarsystem handler, GraphicsDevice device, Camera camera) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Size = 130000f; NumericEccentricity = 0.967f; TurnAroundTime = 2375291520.0f; PlanetMass = 2E14; PhysicsScale = 2800000; DeltaTime = 60 * 60 * 24 * 7; RenderWithBloom = true; PortionY = 0.8; PortionZ = 0.5; InstancedEllipse = new InstancedEllipse(Handler, Camera, 35, Color.White); InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip; ModelPath = @"Comet\LargeAsteroid"; LoadContent(); }
public NetworkCB(Solarsystem handler, GraphicsDevice device, Camera camera, string name, float numeric_e, float sideral_period, float weight, string texture) : base(handler, device, camera) { @Type = CelestialBodyType.Planet; Name = name; Size = weight; NumericEccentricity = numeric_e; TurnAroundTime = sideral_period; Random rand = new Random(); Texture = ToolKit.ToTexture2D(new Color(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, 256)), Handler.GraphicsDevice); var CLoader = Handler.Content; Model = CLoader.Load <Model>(ModelPath); Calculate(); }
public FlatRec3D(Solarsystem g, Camera camera, Vector3 position, Color color) { Handler = g; Device = g.GraphicsDevice; Camera = camera; Effect = new BasicEffect(Device); Effect.VertexColorEnabled = true; Position = position; Vertices = new VertexPositionColor[6]; Vertices[0] = new VertexPositionColor(new Vector3(0, 0, 0), color); Vertices[1] = new VertexPositionColor(new Vector3(1, 0, 0), color); Vertices[2] = new VertexPositionColor(new Vector3(0, 0, 1), color); Vertices[3] = new VertexPositionColor(new Vector3(0, 0, 1), color); Vertices[4] = new VertexPositionColor(new Vector3(1, 0, 1), color); Vertices[5] = new VertexPositionColor(new Vector3(1, 0, 0), color); }