Пример #1
0
 public SpellCastAction(AIFighter fighter, Spell spell, Cell target, bool multipleCast)
     : base(fighter)
 {
     Spell        = spell;
     Target       = target;
     MultipleCast = multipleCast;
 }
Пример #2
0
        private static Color GetTrapColorBySpell(Spell spell)
        {
            switch (spell.Id)
            {
            case (int)SpellIdEnum.PIÈGE_MORTEL:
                return(Color.FromArgb(0, 0, 0, 0));

            case (int)SpellIdEnum.PIÈGE_RÉPULSIF:
                return(Color.FromArgb(0, 155, 240, 237));

            case (int)SpellIdEnum.PIÈGE_EMPOISONNÉ:
                return(Color.FromArgb(0, 105, 28, 117));

            case (int)SpellIdEnum.PIÈGE_DE_SILENCE:
                return(Color.FromArgb(0, 49, 45, 134));

            case (int)SpellIdEnum.PIÈGE_D_IMMOBILISATION:
                return(Color.FromArgb(0, 34, 117, 28));

            case (int)SpellIdEnum.PIÈGE_SOURNOIS:
            case (int)SpellIdEnum.PIÈGE_DE_MASSE:
                return(Color.FromArgb(0, 90, 52, 28));

            default:
                return(Color.Brown);
            }
        }
Пример #3
0
 public Glyph(short id, FightActor caster, Spell castedSpell, EffectDice originEffect, Spell glyphSpell,
              Cell centerCell, SpellShapeEnum shape, byte minSize, byte size, Color color, bool canBeForced, TriggerType triggerType = TriggerType.OnTurnBegin)
     : base(id, caster, castedSpell, originEffect, centerCell,
            new MarkShape(caster.Fight, centerCell, shape, GetMarkShape(shape), minSize, size, color))
 {
     GlyphSpell  = glyphSpell;
     CanBeForced = canBeForced;
     Duration    = originEffect.Duration;
     TriggerType = triggerType;
 }
Пример #4
0
        private static Color GetRuneColorBySpell(Spell spell)
        {
            switch (spell.Id)
            {
            case (int)SpellIdEnum.RUNE_TERRE:
                return(Color.Brown);

            case (int)SpellIdEnum.RUNE_FEU:
                return(Color.Red);

            case (int)SpellIdEnum.RUNE_EAU:
                return(Color.Blue);

            case (int)SpellIdEnum.RUNE_AIR:
                return(Color.Green);

            default:
                return(Color.Black);
            }
        }
Пример #5
0
 public Rune(short id, FightActor caster, Spell spell, EffectDice originEffect, Spell runeSpell, Cell centerCell, SpellShapeEnum shape, byte minSize, byte size)
     : base(id, caster, spell, originEffect, centerCell, new MarkShape(caster.Fight, centerCell, shape, GetMarkShape(shape), minSize, size, GetRuneColorBySpell(spell)))
 {
     RuneSpell = runeSpell;
     Duration  = originEffect.Duration;
 }
Пример #6
0
 public SpellCastAction(AIFighter fighter, Spell spell, Cell target)
     : base(fighter)
 {
     Spell  = spell;
     Target = target;
 }
Пример #7
0
 public Trap(short id, FightActor caster, Spell spell, EffectDice originEffect, Spell trapSpell, Cell centerCell, SpellShapeEnum shape, byte minSize, byte size)
     : base(id, caster, spell, originEffect, centerCell, new MarkShape(caster.Fight, centerCell, shape, GetMarkShape(shape), minSize, size, GetTrapColorBySpell(spell)))
 {
     TrapSpell    = trapSpell;
     VisibleState = GameActionFightInvisibilityStateEnum.INVISIBLE;
 }