RuneHive-Game
Loading...
Searching...
No Matches
HitIcon.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.hit;
2
3/**
4 * The enumerated type whose elements represent the hit icon of a {@link Hit}.
5 *
6 * @author Artem Batutin <artembatutin@gmail.com>
7 */
8public enum HitIcon {
9
10 /** Represents no hit icon at all. */
11 NONE(255),
12
13 /** Represents the melee sword hit icon. */
15
16 /** Represents the ranged bow hit icon. */
18
19 /** Represents the magic hat hit icon. */
21
22 /** Represents the leech hit icon. */
24
25 /** Represents the canon hit icon. */
27
28 /** The identification for this hit type. */
29 private final int id;
30
31 /**
32 * Create a new {@link HitIcon}.
33 *
34 * @param id the identification for this hit type.
35 */
36 HitIcon(int id) {
37 this.id = id;
38 }
39
40 /**
41 * Gets the identification for this hit type.
42 *
43 * @return the identification for this hit type.
44 */
45 public final int getId() {
46 return id;
47 }
48
49}
MELEE
Represents the melee sword hit icon.
Definition HitIcon.java:14
final int id
The identification for this hit type.
Definition HitIcon.java:29
DEFLECT
Represents the leech hit icon.
Definition HitIcon.java:23
RANGED
Represents the ranged bow hit icon.
Definition HitIcon.java:17
MAGIC
Represents the magic hat hit icon.
Definition HitIcon.java:20
final int getId()
Gets the identification for this hit type.
Definition HitIcon.java:45