public void AddActor(Actor actor, Tile tile) { actor.X = tile.X; actor.Y = tile.Y; Actors.Add(actor); tile.Actor = actor; actor.Tile = tile; }
public void Move(Actor actor, Tile tile) { actor.Tile.Actor = null; actor.X = tile.X; actor.Y = tile.Y; tile.Actor = actor; actor.Tile = tile; }
public static double GetDistance(Tile a, Tile b) { return GetDistance(a.X, a.Y, b.X, b.Y); }