package uk.co.patrickhaston.mars;

// The MarsChoice class is used to contain a list of statements which
// the user can make at any particular point in the game.

public class MarsChoice extends MarsData 
{
  public String description;
  // A description of this list of choices
  public boolean useStatements;
  // Set to true if the application generates the list of options
  // dynamically from the MarsStatements array.
  
  public MarsChoice(int id)
  {
    super(id);
    description = "";
    useStatements = false;
  }

  public MarsChoice(MarsChoice c)
  {
    super(c);
    if(c!=null)
    {
      description = c.description;
      useStatements = c.useStatements;
    }
    else
    {
      description = "";
      useStatements = false;
    }
  }
  
  public MarsChoice(String line)
  {
    super(line);
    description = readString(line, 0);
    useStatements = readBoolean(line, 1);    
  }
  
  public String toString()
  {
    return description;
  }
}
