Exemple #1
0
 private void ReGenerateADN(LifeFormTypes aLifeFormType, DNASequence aDna)
 {
     if (dna != null)
     {
         dna = new DNASequence(dna);
     }
     else
     {
         dna = new DNASequence(aLifeFormType);
     }
 }
 protected override void setScanSequence(DNASequence sequenceToScan)
 {
     this.scanSequence = sequenceToScan;
 }
 public Scan4(DNASequence sequenceToScan)
 {
     setScanSequence(sequenceToScan);
 }
 public EnvironmentLifeForm(LifeForm aMaster, LifeFormTypes aLifeFormType, DNASequence aDna)
     : base(aMaster, aLifeFormType, aDna)
 {
     BeginMainTask();
 }
 public DNASequenceResult(string returningAnswer, DNASequence returningSequence)
 {
     this.answer = returningAnswer;
     this.resultSequence = returningSequence;
 }
Exemple #6
0
 public LifeForm(LifeForm aMaster, LifeFormTypes aLifeFormType, DNASequence aDna)
 {
     _Master = aMaster;
     LfType  = aLifeFormType;
     ReGenerateADN(aLifeFormType, aDna);
 }
 protected abstract void setScanSequence(DNASequence sequenceToScan);
 public EnvironmentLifeForm(LifeForm aMaster, LifeFormTypes aLifeFormType, DNASequence aDna)
     : base(aMaster, aLifeFormType, aDna)
 {
     BeginMainTask();
 }
Exemple #9
0
 public FoodLifeForm(LifeForm aMaster, LifeFormTypes aLifeFormType, DNASequence aDna)
     : base(aMaster, aLifeFormType, aDna)
 {
     FoodValue = GetAttribute(SkillTypes.FoodProductionRate);
     BeginMainTask();
 }
Exemple #10
0
 public FoodLifeForm(LifeForm aMaster, LifeFormTypes aLifeFormType, DNASequence aDna)
     : base(aMaster, aLifeFormType, aDna)
 {
     FoodValue = GetAttribute(SkillTypes.FoodProductionRate);
     BeginMainTask();
 }