
// Copyright (c) 2004
package uk.co.patrickhaston.mars;


/**
 * A Class class.
 * <P>
 * @author Patrick Haston
 */
public class MarsEquipment extends MarsData 
{
  public int constructionTypeId;
  // the type of construction
  public int activityTypeId;
  // the type of activity
  public double effectiveness;
  // how well this construction does this activity
  // this is used as a modifier to calculate workforce
  public long workerEquivalent;
  // This is used for constructions that are fully automated

  /**
   * Constructor
   */
  public MarsEquipment(int id) 
  {
    super(id);
  }
  
  public MarsEquipment(String line)
  {
    super(line);
    constructionTypeId = readInteger(line, 0);
    activityTypeId = readInteger(line, 1);
    effectiveness = readDouble(line, 2);
    workerEquivalent = readLong(line, 3);
  }
}

 
