Class_ItemSet - GensokyoGears/itemsets GitHub Wiki
ItemSet.java
This class describes our ItemSet object. The object consists of following elements:
- String title - title of the ItemSet
- String type - type of the ItemSet
- String map - map the ItemSet will be visible on
- String mode - mode the ItemSet will be visible on
- Boolean priority - defines if the ItemSet has higher priority
- Integer sortrank - rank of the ItemSet (sorting purposes)
- Integer download - number of times the ItemSet was downloaded from Archive
Constructor:
public ItemSet(String title, String type, String map, String mode, Boolean priority, Integer sortrank, Integer download)
{ super();
this.title = title;
this.type = type;
this.map = map;
this.mode = mode;
this.priority = priority;
this.sortrank = sortrank;
this.download = download; }
Init function:
public void init()
{ type = "custom";
map = "any"; }
and getters and setters.