public void IdentifyRobotPart(RobotPart robotPart)
        {
            switch (robotPart.RobotPartCategory)
            {
            case RobotPartCategory.Assembly:
                _transportMechanism = new AssemblyRoomTransportMechanism();
                break;

            case RobotPartCategory.Weapon:
                _transportMechanism = new ArmouryTransportMechanism();
                break;
            }
        }
예제 #2
0
 public void AddTransportationMechanism(TransportMechanism transportMechanism)
 {
     _transportMechanisms.Add(transportMechanism);
 }