RuneHive-Game
Loading...
Searching...
No Matches
FightStyle.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.attack;
2
3/**
4 * The enumerated type whose elements represent the fighting styles.
5 *
6 * @author lare96 <http://github.com/lare96>
7 * @author Michael | Chex
8 */
9public enum FightStyle {
10 ACCURATE(3, 0, 0),
11 AGGRESSIVE(0, 3, 0),
12 DEFENSIVE(0, 0, 3),
13 CONTROLLED(1, 1, 1);
14
15 /** The increase to accuracy. */
16 private int accuracyIncrease;
17
18 /** The increase to strength. */
19 private int strengthIncrease;
20
21 /** The increase to defense. */
22 private int defensiveIncrease;
23
24 /** Constructs a new {@link FightStyle} element. */
26 this.accuracyIncrease = accuracyIncrease;
27 this.strengthIncrease = strengthIncrease;
28 this.defensiveIncrease = defensiveIncrease;
29 }
30
31 /** @return the accuracy increase */
32 public int getAccuracyIncrease() {
33 return accuracyIncrease;
34 }
35
36 /** @return the strength increase */
37 public int getStrengthIncrease() {
38 return strengthIncrease;
39 }
40
41 /** @return the defense increase */
42 public int getDefensiveIncrease() {
43 return defensiveIncrease;
44 }
45
46}
FightStyle(int accuracyIncrease, int strengthIncrease, int defensiveIncrease)
Constructs a new FightStyle element.