/* * <WAHL> * Wird benötigt falls eine Partikel Engine eingebaut wird * private Explosion explosion; * */ /// <summary> /// Erstellt eine Representation des Mutterschiff-Aliens. /// </summary> public MothershipRepresentation(Mothership mothershipGameItem, GraphicsDeviceManager graphics) { this.graphics = graphics; this.model = ViewContent.RepresentationContent.MothershipModel; GameItem = mothershipGameItem; this.mothershipTexture = ViewContent.RepresentationContent.MothershipTexture; this.lastPosition = PlaneProjector.Convert2DTo3D(GameItem.Position); this.World = Matrix.CreateWorld(lastPosition, Vector3.Right, Vector3.Up); //[Anji] Schiffs-Antrieb this.mothershipEngine = (MothershipEngine)createParticleEngine(ViewContent.RepresentationContent.MothershipEngineTexture, PlaneProjector.ToScreenCoordinates(lastPosition, graphics), 1f, new Color(255, 96, 167)); }
//[Anji] Erzeugt eine Partikel Engine für den Schiffsantrieb private ParticleEngine createParticleEngine(Texture2D texture, Vector2 location, float size, Color color) { this.mothershipEngine = new MothershipEngine(texture, location, size, color, graphics); return(mothershipEngine); }