|
RuneHive-Game
|
Represents a single graphic that can be used by entities. More...
Public Member Functions | |
| int | compareTo (Graphic other) |
| boolean | equals (Object obj) |
| int | getDelay () |
| Gets the delay of this graphic. | |
| int | getHeight () |
| Gets the height of this graphic. | |
| int | getId () |
| Gets the id of this graphic. | |
| Graphic (int id) | |
Constructs a new Graphic object with no delay, a low height, and normal priotiry. | |
| Graphic (int id, boolean high) | |
Constructs a new Graphic object with no delay and normal priotiry. | |
| Graphic (int id, boolean high, UpdatePriority priority) | |
Constructs a new Graphic object with no delay. | |
| Graphic (int id, int delay) | |
Constructs a new Graphic object with a low height and normal priotiry. | |
| Graphic (int id, int delay, boolean high) | |
Constructs a new Graphic object with a normal priotiry. | |
| Graphic (int id, int delay, boolean high, UpdatePriority priority) | |
Constructs a new Graphic object. | |
| Graphic (int id, int delay, int height) | |
| Graphic (int id, int delay, int height, UpdatePriority priority) | |
| Graphic (int id, int delay, UpdatePriority priority) | |
Constructs a new Graphic object with a low height. | |
| Graphic (int id, UpdatePriority priority) | |
Constructs a new Graphic object with no delay and a low height. | |
| int | hashCode () |
| String | toString () |
Static Public Attributes | |
| static final int | HIGH_HEIGHT = 0x640000 |
| static final int | LUNAR_ID = 747 |
| static final Graphic | LUNAR_TELE = new Graphic(LUNAR_ID, 0, UpdatePriority.VERY_HIGH) |
| static final int | NORMAL_ID = 308 |
| static final Graphic | NORMAL_TELE = new Graphic(NORMAL_ID, 43, UpdatePriority.VERY_HIGH) |
| static final Graphic | RESET = new Graphic(RESET_ID, UpdatePriority.VERY_LOW) |
| static final int | RESET_ID = 0xFFFF |
Private Attributes | |
| final int | delay |
| The delay of this graphic. | |
| final int | height |
| The height of this graphic. | |
| final int | id |
| The graphic id. | |
| final UpdatePriority | priority |
| The priority of the graphic. | |
Represents a single graphic that can be used by entities.
Also known as GFX.
Definition at line 10 of file Graphic.java.
| com.runehive.game.Graphic.Graphic | ( | int | id | ) |
Constructs a new Graphic object with no delay, a low height, and normal priotiry.
| id | The graphic id. |
Definition at line 40 of file Graphic.java.
References id.
Referenced by compareTo(), and equals().
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| boolean | high ) |
Constructs a new Graphic object with no delay and normal priotiry.
| id | The graphic id. |
| high | The graphic height state. |
Definition at line 54 of file Graphic.java.
References id.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| int | delay ) |
Constructs a new Graphic object with a low height and normal priotiry.
| id | The graphic id. |
| delay | The graphic delay. |
Definition at line 68 of file Graphic.java.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| int | delay, | ||
| boolean | high ) |
Constructs a new Graphic object with a normal priotiry.
| id | The graphic id. |
| delay | The graphic delay. |
| high | The graphic height state. |
Definition at line 84 of file Graphic.java.
References delay, id, and com.runehive.game.UpdatePriority.NORMAL.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| UpdatePriority | priority ) |
Constructs a new Graphic object with no delay and a low height.
| id | The graphic id. |
| priority | The graphic priority. |
Definition at line 96 of file Graphic.java.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| boolean | high, | ||
| UpdatePriority | priority ) |
Constructs a new Graphic object with no delay.
| id | The graphic id. |
| high | The graphic height state. |
| priority | The graphic priority. |
Definition at line 111 of file Graphic.java.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| int | delay, | ||
| UpdatePriority | priority ) |
Constructs a new Graphic object with a low height.
| id | The graphic id. |
| delay | The graphic delay. |
| priority | The graphic priority. |
Definition at line 126 of file Graphic.java.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| int | delay, | ||
| boolean | high, | ||
| UpdatePriority | priority ) |
Constructs a new Graphic object.
| id | The graphic id. |
| delay | The graphic delay. |
| high | The graphic height state. |
| priority | The graphic priority. |
Definition at line 144 of file Graphic.java.
References delay, HIGH_HEIGHT, id, and priority.
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| int | delay, | ||
| int | height, | ||
| UpdatePriority | priority ) |
| com.runehive.game.Graphic.Graphic | ( | int | id, |
| int | delay, | ||
| int | height ) |
Definition at line 155 of file Graphic.java.
References delay, height, id, and com.runehive.game.UpdatePriority.NORMAL.
| int com.runehive.game.Graphic.compareTo | ( | Graphic | other | ) |
Definition at line 204 of file Graphic.java.
References Graphic(), and priority.
Referenced by com.runehive.game.world.entity.mob.Mob.graphic().
| boolean com.runehive.game.Graphic.equals | ( | Object | obj | ) |
Definition at line 195 of file Graphic.java.
References delay, Graphic(), height, and priority.
| int com.runehive.game.Graphic.getDelay | ( | ) |
Gets the delay of this graphic.
Definition at line 167 of file Graphic.java.
References delay.
Referenced by com.runehive.net.packet.out.SendNpcUpdate.appendGfxMask(), and com.runehive.net.packet.out.SendPlayerUpdate.appendGraphicMask().
| int com.runehive.game.Graphic.getHeight | ( | ) |
Gets the height of this graphic.
Definition at line 176 of file Graphic.java.
References height.
Referenced by com.runehive.net.packet.out.SendNpcUpdate.appendGfxMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendGraphicMask(), and com.runehive.game.world.entity.combat.strategy.CombatStrategy< T extends Mob >.getEndGraphic().
| int com.runehive.game.Graphic.getId | ( | ) |
Gets the id of this graphic.
Definition at line 185 of file Graphic.java.
References id.
Referenced by com.runehive.net.packet.out.SendNpcUpdate.appendGfxMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendGraphicMask(), and com.runehive.game.world.entity.combat.strategy.CombatStrategy< T extends Mob >.getEndGraphic().
| int com.runehive.game.Graphic.hashCode | ( | ) |
Definition at line 190 of file Graphic.java.
| String com.runehive.game.Graphic.toString | ( | ) |
Definition at line 209 of file Graphic.java.
|
private |
The delay of this graphic.
Definition at line 25 of file Graphic.java.
Referenced by equals(), getDelay(), Graphic(), Graphic(), Graphic(), Graphic(), Graphic(), Graphic(), hashCode(), and toString().
|
private |
The height of this graphic.
Definition at line 28 of file Graphic.java.
Referenced by equals(), getHeight(), Graphic(), Graphic(), hashCode(), and toString().
|
static |
Definition at line 12 of file Graphic.java.
Referenced by Graphic().
|
private |
|
static |
Definition at line 15 of file Graphic.java.
|
static |
Definition at line 19 of file Graphic.java.
|
static |
Definition at line 14 of file Graphic.java.
|
static |
Definition at line 18 of file Graphic.java.
|
private |
The priority of the graphic.
Definition at line 31 of file Graphic.java.
Referenced by compareTo(), equals(), Graphic(), Graphic(), Graphic(), Graphic(), Graphic(), hashCode(), and toString().
|
static |
Definition at line 17 of file Graphic.java.
Referenced by com.runehive.net.packet.out.SendNpcUpdate.appendGfxMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendGraphicMask(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.finish(), com.runehive.content.activity.impl.magearena.MageArena.finish(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode.finish(), com.runehive.content.activity.impl.zulrah.ZulrahActivity.finish(), com.runehive.game.world.entity.mob.Mob.graphic(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.game.action.impl.TeleportAction.onCancel(), com.runehive.content.activity.impl.CerberusActivity.onDeath(), com.runehive.content.activity.impl.fightcaves.FightCaves.onDeath(), com.runehive.content.activity.impl.godwars.GodwarsActivity.onDeath(), com.runehive.content.activity.impl.magearena.MageArena.onDeath(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.onDeath(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.onDeath(), com.runehive.content.activity.impl.zulrah.ZulrahActivity.onRegionChange(), com.runehive.game.world.entity.mob.player.PlayerDeath.postDeath(), com.runehive.content.activity.Activity.remove(), and com.runehive.content.lms.LMSGame.reset().
|
static |
Definition at line 16 of file Graphic.java.