Esempio n. 1
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);
            }
        }
Esempio n. 2
0
        public DrawableSpell(ClientLinearSpell spell, Drawable bullet)
        {
            Spell  = spell;
            Bullet = bullet;
            Tint   = Color.White;

            RemoveWhenDeleted = true;
            ApplyUpdates      = true;
        }
Esempio n. 3
0
        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);
        }
 public Drawable_TowerShot(ClientLinearSpell spell)
     : base(spell,
            new DrawableImage("MapObjects/towershot"))
 {
     Tint = Color.Purple;
 }
Esempio n. 5
0
 public Drawable_ManMega_RocketRampage(ClientLinearSpell spell)
     : base(spell,
            new DrawableImage("Champions/ManMega/manmega_rocketrampage"))
 {
     Tint = Color.Red;
 }
Esempio n. 6
0
 public Drawable_Zoro_Tooth(ClientLinearSpell spell)
     : base(spell,
            new DrawableImage("Champions/Zoro/zoro_tooth"))
 {
 }
Esempio n. 7
0
 public Drawable_ManMega_HintOfASpark(ClientLinearSpell spell)
     : base(spell,
            new DrawableImage("Champions/ManMega/manmega_hintofaspark"))
 {
     Tint = Color.Teal;
 }