Пример #1
0
        // Sets up ship
        private ISpaceShip setUpShip(IPlayer controller, String shipType, Vector2 position)
        {
            Ownership registration = new Ownership();
            registration.SetOwner(controller);
            controller.SetOwnerShip(registration);

            ISpaceShip ship = ConcreteShipFactory.BuildSpaceship(shipType, registration, position, 0);

            registration.SetShip(ship);
            return ship;
        }