RuneHive-Game
Loading...
Searching...
No Matches
FightStyle.java
Go to the documentation of this file.
1
package
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
*/
9
public
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. */
25
FightStyle
(
int
accuracyIncrease
,
int
strengthIncrease
,
int
defensiveIncrease
) {
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
}
com.runehive.game.world.entity.combat.attack.FightStyle.DEFENSIVE
DEFENSIVE
Definition
FightStyle.java:12
com.runehive.game.world.entity.combat.attack.FightStyle.CONTROLLED
CONTROLLED
Definition
FightStyle.java:13
com.runehive.game.world.entity.combat.attack.FightStyle.defensiveIncrease
int defensiveIncrease
The increase to defense.
Definition
FightStyle.java:22
com.runehive.game.world.entity.combat.attack.FightStyle.accuracyIncrease
int accuracyIncrease
The increase to accuracy.
Definition
FightStyle.java:16
com.runehive.game.world.entity.combat.attack.FightStyle.getStrengthIncrease
int getStrengthIncrease()
Definition
FightStyle.java:37
com.runehive.game.world.entity.combat.attack.FightStyle.getDefensiveIncrease
int getDefensiveIncrease()
Definition
FightStyle.java:42
com.runehive.game.world.entity.combat.attack.FightStyle.FightStyle
FightStyle(int accuracyIncrease, int strengthIncrease, int defensiveIncrease)
Constructs a new FightStyle element.
Definition
FightStyle.java:25
com.runehive.game.world.entity.combat.attack.FightStyle.strengthIncrease
int strengthIncrease
The increase to strength.
Definition
FightStyle.java:19
com.runehive.game.world.entity.combat.attack.FightStyle.getAccuracyIncrease
int getAccuracyIncrease()
Definition
FightStyle.java:32
com.runehive.game.world.entity.combat.attack.FightStyle.ACCURATE
ACCURATE
Definition
FightStyle.java:10
com.runehive.game.world.entity.combat.attack.FightStyle.AGGRESSIVE
AGGRESSIVE
Definition
FightStyle.java:11