Inheritance: IGlyphProvider, IMessageReceiver, IDisposable, IPageCallbacker
 public override bool Teleport(Direction enterFromDirection, AbstractEntity ent)
 {
     if (enterFromDirection != Direction.Down)
     {
         ent.Location = ent.Location + Vector3.Down;
         return true;
     }
     return false;
 }
Exemple #2
0
        public void Start(Point tile)
        {
            Vector3 location = new Vector3(tile.X + form.Map.View.x,
                tile.Y + form.Map.View.y, form.Map.View.z);
            Vector3 extents = new Vector3(1, 1, 1);
            AbstractEntity[] ents = form.Map.EntitiesInRectangularRange(location, extents);

            if (ents.Length > 0)
                ent = ents[0];

            form.EntityProperties.SelectedObject = ent;
        }
Exemple #3
0
 public void End(Point tile)
 {
     form.EntityProperties.SelectedObject = ent;
     ent = null;
 }
Exemple #4
0
 public virtual Boolean Teleport(Direction fromDirection, AbstractEntity newLocation)
 {
     return false;
 }