コード例 #1
0
        public Bitmap Visit(Rangers.SmallShip smallShip, FlyingDirection direction)
        {
            ShipL = ProxyImageFactory.GetProxyImage(@"..\..\Images\smallShipL.png");
            ShipB = ProxyImageFactory.GetProxyImage(@"..\..\Images\smallShipB.png");
            ShipF = ProxyImageFactory.GetProxyImage(@"..\..\Images\smallShipF.png");
            ShipR = ProxyImageFactory.GetProxyImage(@"..\..\Images\smallShipR.png");

            return(DirectionSwitcher(direction));
        }
コード例 #2
0
        public Bitmap Visit(Destroyers.BigShip bigShip, FlyingDirection direction)
        {
            ShipL = ProxyImageFactory.GetProxyImage(@"..\..\Images\bigShipL.png");
            ShipB = ProxyImageFactory.GetProxyImage(@"..\..\Images\bigShipB.png");
            ShipF = ProxyImageFactory.GetProxyImage(@"..\..\Images\bigShipF.png");
            ShipR = ProxyImageFactory.GetProxyImage(@"..\..\Images\bigShipR.png");

            return(DirectionSwitcher(direction));
        }
コード例 #3
0
 public CannonDecorator(IDrawDecorator drawing, List <MinimalShip> _tempShips) : base(drawing, _tempShips)
 {
     Cannon = ProxyImageFactory.GetProxyImage(@"..\..\cannon.png");
 }