Exemplo n.º 1
0
        public RoomElement(IMazeRoomInfo roomInfo, ICollection<IPlayer> players)
        {
            RoomInfo = roomInfo;
              Players = players;

              Children.Add(myImage = new Image { Source = roomInfo.Room.Image, Stretch = Stretch.Fill });

              myPlayerImages = new List<Image>(players.Count);
              foreach(IPlayer player in players)
              {
            var image = new Image {Source = player.Image, Stretch = Stretch.Fill, Projection = new PlaneProjection{RotationX = 60}};
            myPlayerImages.Add(image);
            Children.Add(image);
              }
        }
Exemplo n.º 2
0
 public MazeFragmentElement(IGame game, IMazeRoomInfo room)
 {
     myRoom = room;
       Game = game;
 }