예제 #1
0
 /// <summary>
 /// Check if exists a gen of type integer with input key
 /// </summary>
 /// <param name="ID"></param>
 /// <returns></returns>
 public bool ExistsGen(IGenID ID)
 {
     return(m_iGenes.ContainsKey(ID));
 }
예제 #2
0
 /// <summary>
 /// Get an iGen by key
 /// </summary>
 /// <param name="genType"></param>
 /// <returns></returns>
 public IGen GetGen(IGenID genType)
 {
     return(m_iGenes[genType]);
 }
예제 #3
0
 /// <summary>
 /// Create a gen of type integer with the input paramaters
 /// </summary>
 /// <param name="genID"></param>
 /// <param name="genValue"></param>
 /// <param name="genMinValue"></param>
 /// <param name="genMaxValue"></param>
 public void AddGen(IGenID genID, int genValue, int genMinValue, int genMaxValue)
 {
     AddGen(new IGen(genID, genValue, genMinValue, genMaxValue));
 }