Esempio n. 1
0
        public void AddActor(Actor actor, Tile tile)
        {
            actor.X = tile.X;
            actor.Y = tile.Y;

            Actors.Add(actor);

            tile.Actor = actor;
            actor.Tile = tile;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public static double GetDistance(Tile a, Tile b)
 {
     return GetDistance(a.X, a.Y, b.X, b.Y);
 }