예제 #1
0
 /// <summary>
 /// Crée une nouvelle instance de EntityWardPlacement.
 /// </summary>
 public EntityWard()
     : base()
 {
     VisionRange = GameServer.GetScene().Constants.Vision.WardRange;
     Type       |= EntityType.Ward;
     Shape       = new Shapes.CircleShape(Vector2.Zero, 1);
 }
예제 #2
0
        /// <summary>
        /// Crée une nouvelle instance de SpellcastFireball.
        /// </summary>
        public SpellcastBase(Spells.Spell sourceSpell, Spells.SpellCastTargetInfo castInfo) : base()
        {
            SourceSpell        = sourceSpell;
            Name               = sourceSpell.Name;
            m_time             = 0;
            m_shape            = new Shapes.CircleShape(sourceSpell.SourceCaster.Position, sourceSpell.Description.TargetType.AoeRadius);
            m_castInfo         = castInfo;
            m_canTouch         = false;
            m_entityIgnoreList = new List <EntityBase>();

            if (castInfo.Type == Spells.TargettingType.Targetted)
            {
                EntityBase target = GameServer.GetMap().GetEntityById(castInfo.TargetId);
                if (target == null)
                {
                    IsDisposing = true;
                }
                else
                {
                    m_initialTargetPos = target.Position;
                }
            }
        }
예제 #3
0
 /// <summary>
 /// Crée une nouvelle instance de EntityWardPlacement.
 /// </summary>
 public EntityWardPlacement() : base()
 {
     VisionRange = 0;
     Type        = EntityType.WardPlacement;
     Shape       = new Shapes.CircleShape(Vector2.Zero, 2);
 }