Example #1
0
 public Glyph(short id, FightActor caster, Spell castedSpell, Cell centerCell, EffectDice originEffect,
              Spell glyphSpell, GameActionMarkCellsTypeEnum type, byte size, Color color)
     : base(id, caster, castedSpell, centerCell, originEffect, new MarkShape[]
 {
     new MarkShape(caster.Fight, centerCell, type, size, color)
 })
 {
     this.GlyphSpell = glyphSpell;
     this.Duration   = originEffect.Duration;
 }
 // CONSTRUCTORS
 public MarkShape(Fight fight, Cell cell, GameActionMarkCellsTypeEnum shape, byte size, Color color)
 {
     this.Fight  = fight;
     this.Cell   = cell;
     this.Shape  = shape;
     this.Size   = size;
     this.Color  = color;
     this.m_zone = ((this.Shape == GameActionMarkCellsTypeEnum.CELLS_CROSS)
         ? new Zone(SpellShapeEnum.Q, size)
         : new Zone(SpellShapeEnum.C, size));
     this.m_cells = this.m_zone.GetCells(this.Cell, fight.Map);
 }
Example #3
0
        public MarkShape(IFight fight, Cell cell, SpellShapeEnum spellShape, GameActionMarkCellsTypeEnum shape, byte minSize, byte size, Color color)
        {
            Fight   = fight;
            Cell    = cell;
            Shape   = shape;
            Size    = size;
            MinSize = minSize;
            Color   = color;

            m_zone = new Zone(spellShape, size, MinSize);
            CheckCells(m_zone.GetCells(Cell, fight.Map));
        }
Example #4
0
 public Trap(short id, FightActor caster, Spell spell, Cell centerCell, EffectDice originEffect, Spell trapSpell, GameActionMarkCellsTypeEnum shape, byte size)
     : base(id, caster, spell, centerCell, originEffect, new MarkShape[]
 {
     new MarkShape(caster.Fight, centerCell, shape, size, Color.Brown)
 })
 {
     this.TrapSpell    = trapSpell;
     this.VisibleState = GameActionFightInvisibilityStateEnum.INVISIBLE;
 }
Example #5
0
 public MarkShape(IFight fight, Cell cell, GameActionMarkCellsTypeEnum shape, byte minSize, byte size, Color color)
     : this(fight, cell, SpellShapeEnum.C, shape, minSize, size, color)
 {
 }