Guest User

configs.java

a guest
Jul 5th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.08 KB | None | 0 0
  1. ackage events.CtF;
  2.  
  3. import java.util.HashMap;
  4. import java.util.concurrent.ConcurrentHashMap;
  5.  
  6. import l2r.gameserver.utils.GArray;
  7. import l2r.gameserver.utils.Location;
  8. import l2r.gameserver.utils.Util;
  9.  
  10. public class Configs  implements Comparable<Object>
  11. {
  12.     public long START_TIME = 0;
  13.     public int TIME_TO_END_BATTLE = 120;
  14.     public int TIME_MAGE_SUPPORT = 10;
  15.     public int MIN_PARTICIPANTS = 2;
  16.     public int MAX_PARTICIPANTS = 10;
  17.     public int TEAM_COUNTS = 0;
  18.     public String ST_REWARD_ITEM_ID = "";
  19.     public String ST_REWARD_COUNT = "";
  20.     public GArray<Integer> LIST_MAGE_MAG_SUPPORT = new GArray<Integer>();
  21.     public GArray<Integer> LIST_MAGE_FAITER_SUPPORT = new GArray<Integer>();
  22.     public GArray<Location> TEAM_COORDS = new GArray<Location>();
  23.     public GArray<Location> FLAG_COORDS = new GArray<Location>();
  24.     public GArray<String> TEAM_NAME = new GArray<String>();
  25.     public boolean STOP_ALL_EFFECTS = true;
  26.     public boolean ALLOW_TAKE_ITEM = false;
  27.     public boolean ALLOW_KILL_BONUS = false;
  28.     public boolean ALLOW_HERO_WEAPONS = true;
  29.     public int KILL_BONUS_ID = 0;
  30.     public int KILL_BONUS_COUNT = 0;
  31.     public int TAKE_ITEM_ID = 0;
  32.     public int TAKE_COUNT = 0;
  33.     public int RESURRECTION_TIME = 0;
  34.     public int NEED_SCORE = 0;
  35.     public int MIN_LEVEL = 1;
  36.     public int MAX_LEVEL = 85;
  37.     public int TIME_TO_START_BATTLE = 10;
  38.     public HashMap<Integer, Boolean> DOORS = new HashMap<Integer, Boolean>();
  39.     public int PAUSE_TIME = 5;
  40.     public String RESTRICT_ITEMS = "";
  41.     @SuppressWarnings("unused")
  42.     private ConcurrentHashMap<String, String> properties = new ConcurrentHashMap<String, String>();
  43.  
  44.     public int compareTo(Object obj)
  45.     {
  46.         Configs tmp = (Configs)obj;
  47.         return START_TIME < tmp.START_TIME ? -1 : START_TIME > tmp.START_TIME ? 1 : 0;
  48.     }
  49.  
  50.     public int[] getRestictId()
  51.     {
  52.         return getIntArray(RESTRICT_ITEMS);
  53.     }
  54.  
  55.     public int[] getRewardId()
  56.     {
  57.         return getIntArray(ST_REWARD_ITEM_ID);
  58.     }
  59.  
  60.     public int[] getRewardCount()
  61.     {
  62.         return getIntArray(ST_REWARD_COUNT);
  63.     }
  64.  
  65.     private int[] getIntArray(String name)
  66.     {
  67.          return Util.parseCommaSeparatedIntegerArray(name);
  68.     }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment