public WalkerModel(List <Visualizer2D.Wall> walls, Visualizer2D.Player player, Visualizer2D.Exit exit) { Walls = walls.ConvertAll(x => new WalkerWall(x)); Player = new WalkerPlayer(player); Exit = new WalkerExit(exit); startPosition = player.Position.Clone(); CreatePhisycs(); }
public WalkerModel(WalkerModel other) { Visualizer2D.Player player = other.Player.Player; player.Position = other.startPosition; startPosition = other.startPosition; Player = new WalkerPlayer(player); Walls = other.Walls; Exit = other.Exit; CreatePhisycs(); }