Exemplo n.º 1
0
        public DrawableSpell(ClientLinearSpell spell, Drawable bullet)
        {
			Spell = spell;
			Bullet = bullet;
			Tint = Color.White;

			RemoveWhenDeleted = true;
			ApplyUpdates = true;
        }
        public Drawable_ManMega_Slash(ClientLinearSpell spell)
			: base(spell,
			       new DrawableSprite("Champions/ManMega/manmega_slashofdoom",32,32,0,30f,5,1))
        {
			//TODO: refactor in DrawableMeleeSpell
			RemoveWhenDeleted = false;
			ApplyUpdates = false;

			TimeAlive = 0.0;

			Console.WriteLine(spell.Velocity);
        }
Exemplo n.º 3
0
		static DrawableSpell GetSpellFromType(ClientLinearSpell s)
		{
			switch (s.Type) {
				case SpellTypes.ManMega_RocketRampage: return new Drawable_ManMega_RocketRampage(s);
				case SpellTypes.ManMega_Slash: return new Drawable_ManMega_Slash(s);
				case SpellTypes.ManMega_HintOfASpark: return new Drawable_ManMega_HintOfASpark(s);
				case SpellTypes.ManMega_Shotgun: return new Drawable_ManMega_RocketRampage(s);

				case SpellTypes.Zoro_Tooth: return new Drawable_Zoro_Tooth(s);
				case SpellTypes.Zoro_Slash: return new Drawable_ManMega_Slash(s);
				case SpellTypes.Zoro_Double: return new Drawable_Zoro_Tooth(s);
				case SpellTypes.Zoro_Wall: return new Drawable_Zoro_Tooth(s);

				case SpellTypes.Tower_Shot: return new Drawable_TowerShot(s);

				default: throw new NotImplementedException("No spell object for spell " + s.Type);
			}
		}
Exemplo n.º 4
0
		public Drawable_TowerShot(ClientLinearSpell spell)
			: base(spell,
			       new DrawableImage("MapObjects/towershot"))
		{
			Tint = Color.Purple;
		}
Exemplo n.º 5
0
		public Drawable_Zoro_Tooth(ClientLinearSpell spell)
			: base(spell,
			       new DrawableImage("Champions/Zoro/zoro_tooth"))
		{
		}
        public Drawable_ManMega_HintOfASpark(ClientLinearSpell spell)
			: base(spell,
			       new DrawableImage("Champions/ManMega/manmega_hintofaspark"))
        {
			Tint = Color.Teal;
        }
        public Drawable_ManMega_RocketRampage(ClientLinearSpell spell)
			: base(spell,
			       new DrawableImage("Champions/ManMega/manmega_rocketrampage"))
        {
			Tint = Color.Red;
        }