public override bool Teleport(Direction enterFromDirection, AbstractEntity ent) { if (enterFromDirection != Direction.Down) { ent.Location = ent.Location + Vector3.Down; return true; } return false; }
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; }
public void End(Point tile) { form.EntityProperties.SelectedObject = ent; ent = null; }
public virtual Boolean Teleport(Direction fromDirection, AbstractEntity newLocation) { return false; }