public Fireball(String name, Device device, Vector3 position, Vector3 direction, WiccanRede.AI.ActionInfo infoAction, Game.GameLogic logic) : base(null, Matrix.Translation(position), null) { base.SetType(WiccanRede.Graphics.Scene.LightType.Point); this.actionInfo = infoAction; this.logic = logic; this.direction = Vector3.Normalize(direction) * 600f; this.position = position; this.name = name; if (fireballTexture == null) { fireballTexture = TextureLoader.FromFile(device, @"Resources/Textures/Fire.dds"); } objects = Graphics.GraphicCore.GetCurrentSceneManager().GetObjectsOfType(Type.GetType("WiccanRede.Objects.Player"), false); fireParticle = new FireBallParticleSystem(device, fireballTexture); }