Exemple #1
0
        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();
        }
Exemple #2
0
 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();
 }
Exemple #3
0
 public WalkerPlayer(Visualizer2D.Player player)
 {
     this.Player = player;
     collider    = new Visualizer2D.CircleCollider(player.Position, 10.0f);
 }