public bool CheckCategoryCompatibility(Entity.TerrainType terrain, Entity.EntityCategory category) { if (type == WeaponDiversityType.Torpedo) { return(terrain == Entity.TerrainType.Ground); } else { return(TerrainCheck(terrain) && CategoryCheck(category)); } }
public void SetCategory(Entity.EntityCategory category) { this.category = category; }
public bool CategoryCheck(Entity.EntityCategory targetCategory) { return(this.category == Entity.EntityCategory.All || this.category == targetCategory); }