public void DisplayAstronefReserve(Spaceship spaceship)
        {
            SpaceshipReserve v = spaceship.Reserve;

            _bottomRight.Children.Remove(_unitList);
            _bottomRight.Children.Add(v.ReserveHMI);
        }
예제 #2
0
        public Spaceship(Unite unite, MapHMI map) : base(unite)
        {
            MapHMI = map;
            Astronef u = (Astronef)Unite;

            _reserve   = new SpaceshipReserve(u.Reserve, this);
            GhostImage = new Image()
            {
                Source = new BitmapImage(new Uri(Environment.CurrentDirectory + "\\src\\files\\images\\sprites\\astronef.png")),
                Height = Height,
                Width  = Width,
            };
        }