Beispiel #1
0
 public DeferredEntity(AEntity entity, Vector3 drawPosition, int z)
     : base(entity.Serial, entity.Map)
 {
     m_BaseView     = GetBaseView(entity);
     m_DrawPosition = drawPosition;
     m_Z            = z;
 }
        public Overhead(AEntity parent, MessageType msgType, string text)
            : base(parent.Serial, parent.Map)
        {
            Parent      = parent;
            MessageType = msgType;
            Text        = text;

            m_TimePersist = 5000;
        }
Beispiel #3
0
 private AEntityView GetBaseView(AEntity entity)
 {
     if (entity is Mobile)
     {
         return((MobileView)entity.GetView());
     }
     else if (entity is LightningEffect)
     {
         return((LightningEffectView)entity.GetView());
     }
     else if (entity is AnimatedItemEffect)
     {
         return((AnimatedItemEffectView)entity.GetView());
     }
     else if (entity is MovingEffect)
     {
         return((MovingEffectView)entity.GetView());
     }
     else
     {
         Tracer.Critical("Cannot defer this type of object.");
     }
     return(null);
 }