package fr.epicanard.globalmarketchest.shops;

public enum KindShop {
  GLOBALSHOP(1),
  AUCTIONSHOP(2),
  ADMINSHOP(3),
  LOCALSHOP(4)
  ;
  
  private int kindId;

  KindShop(int id) {
    this.kindId = id;
  }
  
  public int getId() {
    return this.kindId;
  }
}

@@ -114,9 +114,9 @@
 HOP(
-3
+4
 ),%0A 
@@ -126,17 +126,17 @@
 CALSHOP(
-4
+8
 )%0A  ;%0A  
@@ -154,66 +154,525 @@
 int 
-kindId;%0A%0A  KindShop(int id) %7B%0A    this.kindId = id;%0A  %7D%0A  
+shopMask;%0A%0A  KindShop(int id) %7B%0A    this.shopMask = id;%0A  %7D%0A  %0A  /**%0A   * @deprecated%0A   * TODELETE%0A   * Get the id of kind of shop%0A   * %0A   * @return%0A   */%0A  public int getId() %7B%0A    return this.shopMask;%0A  %7D%0A%0A  /**%0A   * Define if this KindShop is set on this mask%0A   * %0A   * @param kinds the mask%0A   * @return%0A   */%0A  public Boolean isSetOn(int kinds) %7B%0A    return ((kinds & this.shopMask) == this.shopMask);%0A  %7D%0A%0A  /**%0A   * Add this KindShop to the mask%0A   * %0A   * @param kinds the mask%0A   * @return the mask%0A   */
 %0A  p
@@ -673,38 +673,47 @@
 */%0A  public int 
-getId(
+setOn(int kinds
 ) %7B%0A    return t
@@ -715,19 +715,209 @@
 urn 
-this.kindId
+kinds %7C this.shopMask;%0A  %7D%0A%0A  /**%0A   * Remove this KindShop from the mask%0A   * %0A   * @param kind the mask%0A   * @return the mask%0A   */%0A  public int unsetOn(int kinds) %7B%0A    return kinds & ~this.shopMask
 ;%0A  

improve kindshop