Esempio n. 1
0
 /// <summary>
 /// 指定の状態異常にかかっているかどうか
 /// </summary>
 public bool HasCondition(FishConditionType type)
 {
     return(this.hasConditionBit[1 << (int)type]);
 }
Esempio n. 2
0
 /// <summary>
 /// construct
 /// </summary>
 public FishCondition(FishConditionType type)
 {
     this.type = type;
 }
Esempio n. 3
0
 /// <summary>
 /// 指定の状態異常を取得する
 /// </summary>
 public FishCondition GetCondition(FishConditionType type)
 {
     return(this.conditionList.Find(condition => condition.type == type));
 }
Esempio n. 4
0
 /// <summary>
 /// construct
 /// </summary>
 public FishConditionWithTime(FishConditionType type, float time)
     : base(type)
 {
     this.maxTime = time;
     this.time    = time;
 }