コード例 #1
0
        private void tochar()
        {
            Ship ship = new Ship(currentField);
            Cart cart = new Cart(startpoint);

            EmptyField emptyField   = new EmptyField();
            Dock       dock         = new Dock();
            Rail       rail         = new Rail('-');
            StartPoint startpointer = new StartPoint('A');
            Storage    storage      = new Storage();
            Switch     switchje     = new Switch('S');
            Water      water        = new Water();

            ship.ToChar();
            cart.ToChar();

            emptyField.ToChar();
            dock.ToChar();
            rail.ToChar();
            startpointer.ToChar();
            storage.ToChar();
            switchje.ToChar();
            water.ToChar();
        }