Exemple #1
0
        public ParticleSmall(IParticleMediator mediator) : base(mediator)
        {
            Random random = GameDevice.Instance().GetRandom();

            timer = new CountDownTimer(random.Next(3, 6));
            name  = "particleBlue";
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        public ParticleMiddle(IParticleMediator mediator) : base(mediator)
        {
            var random = GameDevice.Instance().GetRandom();

            timer = new CountDownTimer(random.Next(1, 3));
            name  = "particleMiddle";
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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();
 }
Exemple #7
0
 public Particle(IParticleMediator mediator) : this("particle", Vector2.Zero, Vector2.Zero, mediator)
 {
     isDeadFlag = true;
 }
Exemple #8
0
 public ParticleSmall(string name, Vector2 position, Vector2 velocity, IParticleMediator mediator) : base(name, position, velocity, mediator)
 {
 }
Exemple #9
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="mediator"></param>
 public ParticleFactory(IParticleMediator mediator)
 {
     this.mediator = mediator;
 }
Exemple #10
0
 ///<summary>
 ///コントラスタ
 /// </summary>
 /// <param name="mediator"></param>
 public Particle(IParticleMediator mediator) :
     this("particle", Vector2.Zero, Vector2.Zero, mediator)
 {
 }