Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. package server.game.players.curses;
  2.  
  3. /**
  4. *
  5. * @author JasonRTM
  6. *
  7. */
  8.  
  9. public class Curse {
  10.  
  11. /**
  12. * Enum which holds the data for HeadIcons
  13. */
  14. public enum HeadIcons {
  15. /**Reqlevel, HeadIcon, Config Id*/
  16. WRATH(89),
  17. SOULSPLIT(92);
  18.  
  19. /**
  20. * A Constructor for HeadIcons
  21. */
  22. private HeadIcons(final int Reqlevel) {
  23. this.Reqlevel = Reqlevel;
  24. }
  25.  
  26. private int Reqlevel;
  27.  
  28. /**
  29. * Getter for Reqlevel
  30. * @return
  31. */
  32. public int getReqlevel() {
  33. return Reqlevel;
  34. }
  35.  
  36. }
  37.  
  38. /**
  39. * Enum which holds the data for deflects
  40. */
  41. public enum Deflects {
  42. /**Animation, GFX, reqlevel, HeadIcon, config id*/
  43. DEFLECT_SUMMONING(12573, 2227, 62 /*Config id*/),
  44. DEFLECT_MAGIC(12573, 2228, 65 /*Config id*/),
  45. DEFLECT_MISSILES(12573, 2229, 68 /*Config id*/),
  46. DEFLECT_MELEE(12573, 2230, 71 /*Config id*/);
  47.  
  48. /**
  49. * A constructor for Deflects
  50. */
  51. private Deflects(final int Animation, final int GFX, final int Reqlevel) {
  52. this.Animation = Animation;
  53. this.GFX = GFX;
  54. this.Reqlevel = Reqlevel;
  55. }
  56.  
  57. private int Animation, GFX, Reqlevel;
  58.  
  59. /**
  60. * Getter for the Animation
  61. * @return
  62. */
  63. public int getAnimation() {
  64. return Animation;
  65. }
  66.  
  67. /**
  68. * Getter for the GFX
  69. * @return
  70. */
  71. public int getGFX() {
  72. return GFX;
  73. }
  74.  
  75. /**
  76. * Getter for the Reqlevel
  77. * @return
  78. */
  79. public int getReqlevel() {
  80. return Reqlevel;
  81. }
  82. /* public void handle(int buttonId) {
  83. for (Deflects deflect : Deflects.values()) {
  84. if (buttonId == deflect.DEFLECT_MAGIC) {
  85. c.getPA().startTeleport(final Client c, teleport.getAbsX(), teleport.getAbsY(), teleport.getHeight(), teleport.getType())
  86. c.sendMessage("You teleport to "+teleport.getName()+".");
  87. }
  88. }
  89. }*/
  90. }
  91.  
  92. /**
  93. * Enum which holds the data for activating the curses
  94. */
  95. public enum onCurseActivation {
  96. /**Animation,GFX,reqlevel,config id*/
  97. PROTECT_ITEM(12567, 2213, 50 /*Config needed*/),
  98. BERSERKER(12589, 2266, 59 /*Config Needed*/),
  99. TURMOIL(12565, 2226, 95 /*Config Needed*/);
  100. /**
  101. * The Constructor
  102. */
  103. private onCurseActivation(final int Animation, final int GFX, final int Reqlevel) {
  104. this.Animation = Animation;
  105. this.GFX = GFX;
  106. this.Reqlevel = Reqlevel;
  107. }
  108. private int Animation, GFX, Reqlevel;
  109.  
  110. /**
  111. * Getter for the animation
  112. * @return
  113. */
  114. public int getAnimation() {
  115. return Animation;
  116. }
  117.  
  118. /**
  119. * Getter for the GFXs
  120. * @return
  121. */
  122. public int getGFX() {
  123. return GFX;
  124. }
  125.  
  126. /**
  127. * Getter for the Reqlevel
  128. * @return
  129. */
  130. public int getReqlevel() {
  131. return Reqlevel;
  132. }
  133. }
  134. /**
  135. * Enum which holds the data for the leeches
  136. */
  137. public enum Leeches {
  138. /**Animation, impact GFX, impact GFX 2, projectile, reqlevel, Config id*/
  139. LEECH_ATTACK(12575, 2232, 2233, 2231, 74 /*Config needed*/),
  140. LEECH_RANGED(12575, 2238, 2237, 2236, 76 /*Config needed*/),
  141. LEECH_MAGIC(12575, 2242, 2241, 2240, 78 /*Config needed*/),
  142. LEECH_DEFENCE(12575, 2246, 2245, 2244, 80 /*Config needed*/),
  143. LEECH_STRENGTH(12575, 2250, 2249, 2248, 82 /*Config needed*/),
  144. LEECH_ENERGY(12575, 2254, 2253, 2252, 84 /*Config needed*/),
  145. LEECH_SPECIAL_ATTACK(12575, 2258, 2257, 2256, 86 /*Config needed*/);
  146.  
  147. /**
  148. * The Constructor
  149. */
  150. private Leeches(final int Animation, final int GFX1, final int GFX2, final int Projectile, final int Reqlevel) {
  151. this.Animation = Animation;
  152. this.GFX1 = GFX1;
  153. this.Projectile = Projectile;
  154. this.Reqlevel = Reqlevel;
  155. }
  156.  
  157. private int Animation, GFX1, GFX2, Projectile, Reqlevel;
  158.  
  159. /**
  160. * Getter for Animation
  161. * @return
  162. */
  163. public int getAnimation() {
  164. return Animation;
  165. }
  166.  
  167. /**
  168. * Getter for GFX1
  169. * @return
  170. */
  171. public int getGFX1() {
  172. return GFX1;
  173. }
  174.  
  175. /**
  176. * Getter for GFX2
  177. * @return
  178. */
  179. public int getGFX2() {
  180. return GFX2;
  181. }
  182.  
  183. /**
  184. * Getter for Projectile
  185. * @return
  186. */
  187. public int getProjectile() {
  188. return Projectile;
  189. }
  190.  
  191. /**
  192. * Getter for Reqlevel
  193. * @return
  194. */
  195. public int getReqlevel() {
  196. return Reqlevel;
  197. }
  198. }
  199. /**
  200. * Enum which holds data for the saps
  201. */
  202. public enum Saps {
  203. /**Animation, Shoot, projectile, impact, reqlevel, Config id*/
  204. SAP_WARRIOR(12569, 2214, 2215, 2216, 50 /*Config id*/),
  205. SAP_RANGER(12569, 2217, 2218, 2219, 52 /*Config id*/),
  206. SAP_MAGE(12569, 2220, 2221, 2222, 54),
  207. SAP_SPIRIT(12569, 2223, 2224, 2225, 56 /*Config id*/);
  208.  
  209. /**
  210. * A constructor for the enum
  211. */
  212. private Saps(final int Animation, final int Shoot, final int Projectile, final int Impact, final int Reqlevel) {
  213. this.Animation = Animation;
  214. this.Shoot = Shoot;
  215. this.Projectile = Projectile;
  216. this.Impact = Impact;
  217. this.Reqlevel = Reqlevel;
  218. }
  219.  
  220. private int Animation, Shoot, Projectile, Impact, Reqlevel;
  221.  
  222. /**
  223. * Getter for the animation
  224. * @return
  225. */
  226. public int getAnimation() {
  227. return Animation;
  228. }
  229.  
  230. /**
  231. * Getter for the Shot GFX
  232. * @return
  233. */
  234. public int getShoot() {
  235. return Shoot;
  236. }
  237.  
  238. /**
  239. * Getter for the Projectile GFX
  240. * @return
  241. */
  242. public int getProjectile() {
  243. return Projectile;
  244. }
  245.  
  246. /**
  247. * Getter for the impact GFX
  248. * @return
  249. */
  250. public int getImpact() {
  251. return Impact;
  252. }
  253.  
  254. /**
  255. * Getter for the Reqlevel
  256. * @return
  257. */
  258. public int getReqlevel() {
  259. return Reqlevel;
  260. }
  261. }
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement