public class TechSet extends Object
Modifier and Type | Field and Description |
---|---|
static TechSet |
AllTech
Deprecated.
Not for public use. Replaced by
getAllTech() . |
Constructor and Description |
---|
TechSet() |
TechSet(Set<Tech> include) |
TechSet(Tech... include) |
TechSet(Tech[] include,
Tech[] exclude) |
TechSet(TechSet techSet) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
void |
exclude(Tech tech) |
static TechSet |
getAllTech()
Get a TechSet including all Tech currently known
|
TreeSet<Tech> |
getExcludeTech() |
TreeSet<Tech> |
getIncludeTech() |
int |
hashCode() |
void |
include(Tech tech) |
boolean |
includes(Tech tech) |
boolean |
includesAny(Tech... techs)
Tells whether or not any of the given technologies is included.
|
void |
print() |
@Deprecated public static final TechSet AllTech
getAllTech()
.public TechSet()
public TechSet(Tech... include)
public TechSet(TechSet techSet)
public void include(Tech tech)
public void exclude(Tech tech)
public boolean includes(Tech tech)
public boolean includesAny(Tech... techs)
techs
- the technologies that will be checked.true
if any of the technologies is included, false
otherwise.includes(Tech)
public void print()
public static TechSet getAllTech()
Info: always returns a new TechSet containing the currently known Tech