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