Inheritance: IGlyphProvider, IMessageReceiver, IDisposable, IPageCallbacker
Ejemplo n.º 1
0
 public override bool Teleport(Direction enterFromDirection, AbstractEntity ent)
 {
     if (enterFromDirection != Direction.Down)
     {
         ent.Location = ent.Location + Vector3.Down;
         return true;
     }
     return false;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public void End(Point tile)
 {
     form.EntityProperties.SelectedObject = ent;
     ent = null;
 }
Ejemplo n.º 4
0
 public virtual Boolean Teleport(Direction fromDirection, AbstractEntity newLocation)
 {
     return false;
 }