RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.emote.Emote Enum Reference

Holds all the emote data. More...

Inheritance diagram for com.runehive.content.emote.Emote:
Collaboration diagram for com.runehive.content.emote.Emote:

Public Member Functions

 Emote (int button, int animation, int graphic, int config)
 Constructs a new Emote.
int getAnimation ()
 Gets the animation of the the emote.
int getButton ()
 Gets the button identification of the emote.
int getConfig ()
 Gets the config of the emote.
int getGraphic ()
 Gets the graphic of the emote.
Public Member Functions inherited from com.runehive.util.generic.BooleanInterface< T >
boolean activated (final T player)

Static Public Member Functions

static void execute (Player player, int animation, int graphic)
static Optional< EmoteforId (int button)
 Gets emote data corresponding the the button identification.
static void skillcape (Player player)

Public Attributes

 AIR_GUITAR
 ANGRY
 BECKON
 BLOW_KISS
 BOW
 CHEER
 CLAP
 CLIMB_ROPE
 CRY
 DANCE
 FLAP
 GLASS_BOX
 GLASS_WALL
 GOBLIN_BOW
 GOBLIN_SALUTE
 HEADBANG
 HYPERMOBILE_DRINKER
 IDEA
 JIG
 JOG
 JUMP_FOR_JOY
 LAUGH
 LEAN
 NO
 PANIC
 PUSH_UP
 RABBIT_HOP
 RASBERRY
 SALUTE
 SCARED
 SHRUG
 SIT_UP
 SLAP_HEAD
 STAR_JUMP
 STOMP
 THINK
 TWIRL
 URI_TRANSFORM
 WAVE
 YAWN
 YES
 ZOMBIE_DANCE
 ZOMBIE_HAND
 ZOMBIE_WALK

Private Attributes

final int animation
 The emote animation.
final int button
 The button identification.
final int config
 The emote configuration.
final int graphic
 The emote graphic.

Detailed Description

Holds all the emote data.

Author
Daniel

Definition at line 18 of file Emote.java.

Constructor & Destructor Documentation

◆ Emote()

com.runehive.content.emote.Emote.Emote ( int button,
int animation,
int graphic,
int config )

Constructs a new Emote.

Definition at line 299 of file Emote.java.

299 {
300 this.button = button;
301 this.animation = animation;
302 this.graphic = graphic;
303 this.config = config;
304 }

References animation, button, config, and graphic.

Member Function Documentation

◆ execute()

void com.runehive.content.emote.Emote.execute ( Player player,
int animation,
int graphic )
static

Definition at line 325 of file Emote.java.

325 {
326 player.locking.lock(30);
327 player.action.execute(new EmoteAction(player, animation, graphic), false);
328 player.locking.unlock();
329 }

References com.runehive.game.world.entity.mob.Mob.action, animation, com.runehive.game.action.ActionManager.execute(), graphic, com.runehive.game.world.entity.mob.Locking.lock, com.runehive.game.world.entity.mob.Mob.locking, and com.runehive.game.world.entity.mob.Locking.unlock().

Referenced by skillcape().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ forId()

Optional< Emote > com.runehive.content.emote.Emote.forId ( int button)
static

Gets emote data corresponding the the button identification.

Definition at line 352 of file Emote.java.

352 {
353 return Arrays.stream(values()).filter(a -> a.button == button).findAny();
354 }

References button.

◆ getAnimation()

int com.runehive.content.emote.Emote.getAnimation ( )

Gets the animation of the the emote.

Definition at line 337 of file Emote.java.

337 {
338 return animation;
339 }

References animation.

◆ getButton()

int com.runehive.content.emote.Emote.getButton ( )

Gets the button identification of the emote.

Definition at line 332 of file Emote.java.

332 {
333 return button;
334 }

References button.

◆ getConfig()

int com.runehive.content.emote.Emote.getConfig ( )

Gets the config of the emote.

Definition at line 347 of file Emote.java.

347 {
348 return config;
349 }

References config.

◆ getGraphic()

int com.runehive.content.emote.Emote.getGraphic ( )

Gets the graphic of the emote.

Definition at line 342 of file Emote.java.

342 {
343 return graphic;
344 }

References graphic.

◆ skillcape()

void com.runehive.content.emote.Emote.skillcape ( Player player)
static

Definition at line 306 of file Emote.java.

306 {
307 Item item = player.equipment.get(Equipment.CAPE_SLOT);
308
309 if (item == null) {
310 player.send(new SendMessage("You must be wearing a skillcape to perform this emote!"));
311 return;
312 }
313
314 Skillcape skillcape = Skillcape.forId(item.getId());
315
316 if (skillcape == null) {
317 player.send(new SendMessage("You must be wearing a skillcape to perform this emote!"));
318 return;
319 }
320 player.locking.lock(30);
321 execute(player, skillcape.getAnimation(), skillcape.getGraphic());
322 player.locking.unlock();
323 }

References com.runehive.game.world.items.containers.equipment.Equipment.CAPE_SLOT, com.runehive.game.world.entity.mob.player.Player.equipment, execute(), com.runehive.content.emote.Skillcape.forId(), com.runehive.game.world.items.containers.ItemContainer.get(), com.runehive.game.world.items.Item.getId(), com.runehive.game.world.entity.mob.Locking.lock, com.runehive.game.world.entity.mob.Mob.locking, com.runehive.game.world.entity.mob.player.Player.send(), skillcape(), and com.runehive.game.world.entity.mob.Locking.unlock().

Referenced by skillcape().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ AIR_GUITAR

com.runehive.content.emote.Emote.AIR_GUITAR
Initial value:
=(18715, -1, 1239, 1115) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.GUITAR);
}
}
This class represents a character controlled by a player.
Definition Player.java:125

Definition at line 273 of file Emote.java.

273 {
274 @Override
275 public boolean activated(Player player) {
276 return player.emoteUnlockable.contains(EmoteUnlockable.GUITAR);
277 }
278 },

◆ ANGRY

com.runehive.content.emote.Emote.ANGRY
Initial value:
=(167, 864, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 37 of file Emote.java.

37 {
38 @Override
39 public boolean activated(Player player) {
40 return true;
41 }
42 },

◆ animation

final int com.runehive.content.emote.Emote.animation
private

The emote animation.

Definition at line 290 of file Emote.java.

Referenced by Emote(), execute(), and getAnimation().

◆ BECKON

com.runehive.content.emote.Emote.BECKON
Initial value:
=(165, 859, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 67 of file Emote.java.

67 {
68 @Override
69 public boolean activated(Player player) {
70 return true;
71 }
72 },

◆ BLOW_KISS

com.runehive.content.emote.Emote.BLOW_KISS
Initial value:
=(11100, 0x558, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 121 of file Emote.java.

121 {
122 @Override
123 public boolean activated(Player player) {
124 return true;
125 }
126 },

◆ BOW

com.runehive.content.emote.Emote.BOW
Initial value:
=(164, 858, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 31 of file Emote.java.

31 {
32 @Override
33 public boolean activated(Player player) {
34 return true;
35 }
36 },

◆ button

final int com.runehive.content.emote.Emote.button
private

The button identification.

Definition at line 287 of file Emote.java.

Referenced by Emote(), forId(), and getButton().

◆ CHEER

com.runehive.content.emote.Emote.CHEER
Initial value:
=(171, 862, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 61 of file Emote.java.

61 {
62 @Override
63 public boolean activated(Player player) {
64 return true;
65 }
66 },

◆ CLAP

com.runehive.content.emote.Emote.CLAP
Initial value:
=(172, 865, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 139 of file Emote.java.

139 {
140 @Override
141 public boolean activated(Player player) {
142 return true;
143 }
144 },

◆ CLIMB_ROPE

com.runehive.content.emote.Emote.CLIMB_ROPE
Initial value:
=(18718, 0x46A, -1, 1118) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.CLIMB_ROPE);
}
}

Definition at line 170 of file Emote.java.

170 {
171 @Override
172 public boolean activated(Player player) {
173 return player.emoteUnlockable.contains(EmoteUnlockable.CLIMB_ROPE);
174 }
175 },

◆ config

final int com.runehive.content.emote.Emote.config
private

The emote configuration.

Definition at line 296 of file Emote.java.

Referenced by Emote(), and getConfig().

◆ CRY

com.runehive.content.emote.Emote.CRY
Initial value:
=(161, 860, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 115 of file Emote.java.

115 {
116 @Override
117 public boolean activated(Player player) {
118 return true;
119 }
120 },

◆ DANCE

com.runehive.content.emote.Emote.DANCE
Initial value:
=(166, 866, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 91 of file Emote.java.

91 {
92 @Override
93 public boolean activated(Player player) {
94 return true;
95 }
96 },

◆ FLAP

com.runehive.content.emote.Emote.FLAP
Initial value:
=(18702, 4280, -1, 1102) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.FLAP);
}
}

Definition at line 201 of file Emote.java.

201 {
202 @Override
203 public boolean activated(Player player) {
204 return player.emoteUnlockable.contains(EmoteUnlockable.FLAP);
205 }
206 },

◆ GLASS_BOX

com.runehive.content.emote.Emote.GLASS_BOX
Initial value:
=(18717, 0x46B, -1, 1117) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.GLASS_BOX);
}
}

Definition at line 164 of file Emote.java.

164 {
165 @Override
166 public boolean activated(Player player) {
167 return player.emoteUnlockable.contains(EmoteUnlockable.GLASS_BOX);
168 }
169 },

◆ GLASS_WALL

com.runehive.content.emote.Emote.GLASS_WALL
Initial value:
=(18720, 0x468, -1, 1120) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.GLASS_WALL);
}
}

Definition at line 182 of file Emote.java.

182 {
183 @Override
184 public boolean activated(Player player) {
185 return player.emoteUnlockable.contains(EmoteUnlockable.GLASS_WALL);
186 }
187 },

◆ GOBLIN_BOW

com.runehive.content.emote.Emote.GOBLIN_BOW
Initial value:
=(13383, 0x84F, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 151 of file Emote.java.

151 {
152 @Override
153 public boolean activated(Player player) {
154 return true;
155 }
156 },

◆ GOBLIN_SALUTE

com.runehive.content.emote.Emote.GOBLIN_SALUTE
Initial value:
=(13384, 0x850, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 157 of file Emote.java.

157 {
158 @Override
159 public boolean activated(Player player) {
160 return true;
161 }
162 },

◆ graphic

final int com.runehive.content.emote.Emote.graphic
private

The emote graphic.

Definition at line 293 of file Emote.java.

Referenced by Emote(), execute(), and getGraphic().

◆ HEADBANG

com.runehive.content.emote.Emote.HEADBANG
Initial value:
=(13365, 2108, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 109 of file Emote.java.

109 {
110 @Override
111 public boolean activated(Player player) {
112 return true;
113 }
114 },

◆ HYPERMOBILE_DRINKER

com.runehive.content.emote.Emote.HYPERMOBILE_DRINKER
Initial value:
=(18713, 7131, -1, 1113) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.DRINK);
}
}

Definition at line 267 of file Emote.java.

267 {
268 @Override
269 public boolean activated(Player player) {
270 return player.emoteUnlockable.contains(EmoteUnlockable.DRINK);
271 }
272 },

◆ IDEA

com.runehive.content.emote.Emote.IDEA
Initial value:
=(18700, 4276, 712, 1100) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.IDEA);
}
}

Definition at line 189 of file Emote.java.

189 {
190 @Override
191 public boolean activated(Player player) {
192 return player.emoteUnlockable.contains(EmoteUnlockable.IDEA);
193 }
194 },

◆ JIG

com.runehive.content.emote.Emote.JIG
Initial value:
=(13363, 2106, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 97 of file Emote.java.

97 {
98 @Override
99 public boolean activated(Player player) {
100 return true;
101 }
102 },

◆ JOG

com.runehive.content.emote.Emote.JOG
Initial value:
=(18711, 2764, -1, 1111) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.JOG);
}
}

Definition at line 255 of file Emote.java.

255 {
256 @Override
257 public boolean activated(Player player) {
258 return player.emoteUnlockable.contains(EmoteUnlockable.JOG);
259 }
260 },

◆ JUMP_FOR_JOY

com.runehive.content.emote.Emote.JUMP_FOR_JOY
Initial value:
=(13366, 2109, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 79 of file Emote.java.

79 {
80 @Override
81 public boolean activated(Player player) {
82 return true;
83 }
84 },

◆ LAUGH

com.runehive.content.emote.Emote.LAUGH
Initial value:
=(170, 861, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 73 of file Emote.java.

73 {
74 @Override
75 public boolean activated(Player player) {
76 return true;
77 }
78 },

◆ LEAN

com.runehive.content.emote.Emote.LEAN
Initial value:
=(18719, 0x469, -1, 1119) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.LEAN);
}
}

Definition at line 176 of file Emote.java.

176 {
177 @Override
178 public boolean activated(Player player) {
179 return player.emoteUnlockable.contains(EmoteUnlockable.LEAN);
180 }
181 },

◆ NO

com.runehive.content.emote.Emote.NO
Initial value:
=(169, 856, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 25 of file Emote.java.

25 {
26 @Override
27 public boolean activated(Player player) {
28 return true;
29 }
30 },

◆ PANIC

com.runehive.content.emote.Emote.PANIC
Initial value:
=(13362, 2105, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 127 of file Emote.java.

127 {
128 @Override
129 public boolean activated(Player player) {
130 return true;
131 }
132 },

◆ PUSH_UP

com.runehive.content.emote.Emote.PUSH_UP
Initial value:
=(18709, 2756, -1, 1109) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.PUSH_UP);
}
}

Definition at line 243 of file Emote.java.

243 {
244 @Override
245 public boolean activated(Player player) {
246 return player.emoteUnlockable.contains(EmoteUnlockable.PUSH_UP);
247 }
248 },

◆ RABBIT_HOP

com.runehive.content.emote.Emote.RABBIT_HOP
Initial value:
=(18707, 6111, -1, 1107) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.BUNNY_HOP);
}
}

Definition at line 231 of file Emote.java.

231 {
232 @Override
233 public boolean activated(Player player) {
234 return player.emoteUnlockable.contains(EmoteUnlockable.BUNNY_HOP);
235 }
236 },

◆ RASBERRY

com.runehive.content.emote.Emote.RASBERRY
Initial value:
=(13367, 2110, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 133 of file Emote.java.

133 {
134 @Override
135 public boolean activated(Player player) {
136 return true;
137 }
138 },

◆ SALUTE

com.runehive.content.emote.Emote.SALUTE
Initial value:
=(13369, 2112, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 145 of file Emote.java.

145 {
146 @Override
147 public boolean activated(Player player) {
148 return true;
149 }
150 },

◆ SCARED

com.runehive.content.emote.Emote.SCARED
Initial value:
=(18706, 2836, -1, 1106) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.SCARED);
}
}

Definition at line 225 of file Emote.java.

225 {
226 @Override
227 public boolean activated(Player player) {
228 return player.emoteUnlockable.contains(EmoteUnlockable.SCARED);
229 }
230 },

◆ SHRUG

com.runehive.content.emote.Emote.SHRUG
Initial value:
=(13370, 2113, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 55 of file Emote.java.

55 {
56 @Override
57 public boolean activated(Player player) {
58 return true;
59 }
60 },

◆ SIT_UP

com.runehive.content.emote.Emote.SIT_UP
Initial value:
=(18708, 2763, -1, 1108) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.SIT_UP);
}
}

Definition at line 237 of file Emote.java.

237 {
238 @Override
239 public boolean activated(Player player) {
240 return player.emoteUnlockable.contains(EmoteUnlockable.SIT_UP);
241 }
242 },

◆ SLAP_HEAD

com.runehive.content.emote.Emote.SLAP_HEAD
Initial value:
=(18703, 4275, -1, 1103) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.SLAP);
}
}

Definition at line 207 of file Emote.java.

207 {
208 @Override
209 public boolean activated(Player player) {
210 return player.emoteUnlockable.contains(EmoteUnlockable.SLAP);
211 }
212 },

◆ STAR_JUMP

com.runehive.content.emote.Emote.STAR_JUMP
Initial value:
=(18710, 2761, -1, 1110) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.JUMPING_JACK);
}
}

Definition at line 249 of file Emote.java.

249 {
250 @Override
251 public boolean activated(Player player) {
252 return player.emoteUnlockable.contains(EmoteUnlockable.JUMPING_JACK);
253 }
254 },

◆ STOMP

com.runehive.content.emote.Emote.STOMP
Initial value:
=(18701, 4278, -1, 1101) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.STOMP);
}
}

Definition at line 195 of file Emote.java.

195 {
196 @Override
197 public boolean activated(Player player) {
198 return player.emoteUnlockable.contains(EmoteUnlockable.STOMP);
199 }
200 },

◆ THINK

com.runehive.content.emote.Emote.THINK
Initial value:
=(162, 857, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 43 of file Emote.java.

43 {
44 @Override
45 public boolean activated(Player player) {
46 return true;
47 }
48 },

◆ TWIRL

com.runehive.content.emote.Emote.TWIRL
Initial value:
=(13364, 2107, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 103 of file Emote.java.

103 {
104 @Override
105 public boolean activated(Player player) {
106 return true;
107 }
108 },

◆ URI_TRANSFORM

com.runehive.content.emote.Emote.URI_TRANSFORM
Initial value:
=(18716, -1, -1, 1116) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.URI);
}
}

Definition at line 284 of file Emote.java.

279 {
280 @Override
281 public boolean activated(Player player) {
282 return player.emoteUnlockable.contains(EmoteUnlockable.URI);
283 }
284 };

◆ WAVE

com.runehive.content.emote.Emote.WAVE
Initial value:
=(163, 863, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 49 of file Emote.java.

49 {
50 @Override
51 public boolean activated(Player player) {
52 return true;
53 }
54 },

◆ YAWN

com.runehive.content.emote.Emote.YAWN
Initial value:
=(13368, 2111, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 85 of file Emote.java.

85 {
86 @Override
87 public boolean activated(Player player) {
88 return true;
89 }
90 },

◆ YES

com.runehive.content.emote.Emote.YES
Initial value:
=(168, 855, -1, -1) {
@Override
public boolean activated(Player player) {
return true;
}
}

Definition at line 19 of file Emote.java.

19 {
20 @Override
21 public boolean activated(Player player) {
22 return true;
23 }
24 },

◆ ZOMBIE_DANCE

com.runehive.content.emote.Emote.ZOMBIE_DANCE
Initial value:
=(18705, 3543, -1, 1105) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.ZOMBIE_DANCE);
}
}

Definition at line 219 of file Emote.java.

219 {
220 @Override
221 public boolean activated(Player player) {
222 return player.emoteUnlockable.contains(EmoteUnlockable.ZOMBIE_DANCE);
223 }
224 },

◆ ZOMBIE_HAND

com.runehive.content.emote.Emote.ZOMBIE_HAND
Initial value:
=(18712, 4513, 320, 1112) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.DEMON_HAND);
}
}

Definition at line 261 of file Emote.java.

261 {
262 @Override
263 public boolean activated(Player player) {
264 return player.emoteUnlockable.contains(EmoteUnlockable.DEMON_HAND);
265 }
266 },

◆ ZOMBIE_WALK

com.runehive.content.emote.Emote.ZOMBIE_WALK
Initial value:
=(18704, 3544, -1, 1104) {
@Override
public boolean activated(Player player) {
return player.emoteUnlockable.contains(EmoteUnlockable.ZOMBIE_WALK);
}
}

Definition at line 213 of file Emote.java.

213 {
214 @Override
215 public boolean activated(Player player) {
216 return player.emoteUnlockable.contains(EmoteUnlockable.ZOMBIE_WALK);
217 }
218 },

The documentation for this enum was generated from the following file: