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