Advertisement
BigETI

WeaponSlot.java

Jan 19th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1.  
  2. public enum WeaponSlot
  3. {
  4.     INVALID(-1, "Invalid"),
  5.     HAND(0, "Hand"),
  6.     MELEE(1, "Melee"),
  7.     PISTOL(2, "Pistol"),
  8.     SHOTGUN(3, "Shotgun"),
  9.     MACHINE_PISTOL(4, "Machine pistol"),
  10.     CARABINER(5, "Carabiner"),
  11.     RIFLE(6, "Rifle"),
  12.     HEAVY(7, "Heavy"),
  13.     THROWABLE(8, "Throwable"),
  14.     MISC1(9, "Misc 1"),
  15.     MISC2(10, "Misc 2"),
  16.     WEARABLE(11, "Wearable"),
  17.     DETONATOR(12, "Detonator");
  18.    
  19.     private final int slot_id;
  20.     private final String type_name;
  21.    
  22.     WeaponSlot(int slot_id, String type_name)
  23.     {
  24.         this.slot_id = slot_id;
  25.         this.type_name = type_name;
  26.     }
  27.    
  28.     public int getID()
  29.     {
  30.         return this.slot_id;
  31.     }
  32.    
  33.     public String toString()
  34.     {
  35.         return this.type_name;
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement