content: /*
   * Copyright 2008-present, David Karnok & Contributors
   * The file is part of the Open Imperium Galactica project.
   *
   * The code should be distributed under the LGPL license.
   * See http://www.gnu.org/licenses/lgpl.html for details.
   */
  
  package hu.openig.model;
  
  /**
   * A concrete in-progress production.
   * @author akarnokd, 2010.01.07.
   */
  public class Production {
      /** The research type. */
      public ResearchType type;
      /** The number of items to produce. */
      public int count;
      /** The progress into the current item. */
      public int progress;
      /** The priority value. */
      public int priority;
      /**
       * Create a copy of this production status.
       * @return the copy
       */
      public Production copy() {
          Production result = new Production();
          result.assign(this);
          return result;
      }
      /**
       * Assign from another production object.
       * @param other the other production
       */
      public void assign(Production other) {
          type = other.type;
          count = other.count;
          progress = other.progress;
          priority = other.priority;
      }
  }
  