public ParticleSmall(IParticleMediator mediator) : base(mediator) { Random random = GameDevice.Instance().GetRandom(); timer = new CountDownTimer(random.Next(3, 6)); name = "particleBlue"; }
public ParticleBlue(string name, Vector2 position, Vector2 velocity, IParticleMediator mediator) : base(name, position, velocity, mediator) { var random = GameDevice.Instance().GetRandom(); timer = new CountDownTimer(random.Next(1, 3)); }
public ParticleMiddle(IParticleMediator mediator) : base(mediator) { var random = GameDevice.Instance().GetRandom(); timer = new CountDownTimer(random.Next(1, 3)); name = "particleMiddle"; }
public ParticleMiddle(string name, Vector2 position, Vector2 velocity, IParticleMediator mediator) : base(name, position, velocity, mediator) { var random = GameDevice.Instance().GetRandom(); timer = new CountDownTimer((float)random.NextDouble() - 0.2f - 0.2f); }
protected IParticleMediator mediator; //仲介者 ///<summary> /// /// </summary> ///<param name="name"></param> ///<param name="position"></param> ///<param name="velocity"></param> ///<param name="mediator"></param> public Particle(string name, Vector2 position, Vector2 velocity, IParticleMediator mediator) { this.name = name; this.position = position; this.velocity = velocity; this.mediator = mediator; }
public ParticleManager() { Instance = this; Initialize(); }
public Particle(IParticleMediator mediator) : this("particle", Vector2.Zero, Vector2.Zero, mediator) { isDeadFlag = true; }
public ParticleSmall(string name, Vector2 position, Vector2 velocity, IParticleMediator mediator) : base(name, position, velocity, mediator) { }
/// <summary> /// コンストラクタ /// </summary> /// <param name="mediator"></param> public ParticleFactory(IParticleMediator mediator) { this.mediator = mediator; }
///<summary> ///コントラスタ /// </summary> /// <param name="mediator"></param> public Particle(IParticleMediator mediator) : this("particle", Vector2.Zero, Vector2.Zero, mediator) { }