|
RuneHive-Game
|
Handles the dwarf cannon. More...
Public Member Functions | |
| void | addToRegion (Region region) |
| Adds this entity to the specified region. | |
| Cannon (String owner, Position position) | |
| boolean | equals (Object obj) |
| int | getAmmunition () |
| String | getName () |
| Gets the name of this entity. | |
| CustomGameObject | getObject () |
| String | getOwner () |
| Position | getPosition () |
| Rotation | getRotation () |
| Setup | getStage () |
| EntityType | getType () |
Gets the EntityType. | |
| int | hashCode () |
| boolean | isFiring () |
| void | register () |
Registers an entity to the World. | |
| void | removeFromRegion (Region region) |
| Removes this entity from the specified region. | |
| void | setAmmunition (int ammunition) |
| void | setFiring (boolean firing) |
| void | setObject (CustomGameObject object) |
| void | setRotation (Rotation rotation) |
| void | setStage (Setup stage) |
| void | unregister () |
Unregisters an entity from the World. | |
| Public Member Functions inherited from com.runehive.game.world.entity.Entity | |
| Entity (Position position) | |
| Entity (Position position, boolean visible) | |
| Position | getCenterPosition () |
| int | getHeight () |
| int | getIndex () |
| Region | getRegion () |
| int | getX () |
| int | getY () |
| boolean | is (EntityType type) |
| final boolean | isCustomObject () |
| Check if an entity is an object. | |
| final boolean | isRegistered () |
| final boolean | isStaticObject () |
| Check if an entity is an object. | |
| boolean | isValid () |
| Validates this npc based on its current region and registered state. | |
| boolean | isVisible () |
| int | length () |
| void | onStep () |
| void | setIndex (int index) |
| void | setLength (int length) |
| void | setPosition (Position position) |
| void | setVisible (boolean visible) |
| void | setWidth (int width) |
| void | setX (int x) |
| void | setY (int y) |
| void | setZ (int z) |
| String | toString () |
| int | width () |
Private Attributes | |
| int | ammunition |
| boolean | firing |
| CustomGameObject | object |
| final String | owner |
| final Position | position |
| Rotation | rotation |
| Setup | stage |
Additional Inherited Members | |
| Static Public Member Functions inherited from com.runehive.game.world.Interactable | |
| static Interactable | create (Position position) |
Creates a new instance of an Interactable. | |
| static Interactable | create (Position position, int width, int length) |
Creates a new instance of an Interactable. | |
| Public Attributes inherited from com.runehive.game.world.entity.Entity | |
| int | instance = DEFAULT_INSTANCE |
| Static Public Attributes inherited from com.runehive.game.world.entity.Entity | |
| static final int | DEFAULT_INSTANCE = 0 |
| Protected Member Functions inherited from com.runehive.game.world.entity.Entity | |
| Entity | destroy () |
| Destroys this entity. | |
| void | setRegistered (boolean registered) |
Handles the dwarf cannon.
Definition at line 19 of file Cannon.java.
| com.runehive.content.combat.cannon.Cannon.Cannon | ( | String | owner, |
| Position | position ) |
Definition at line 35 of file Cannon.java.
References com.runehive.content.combat.cannon.CannonManager.Setup.NO_CANNON, com.runehive.content.combat.cannon.CannonManager.Rotation.NORTH, owner, and position.
| void com.runehive.content.combat.cannon.Cannon.addToRegion | ( | Region | region | ) |
Adds this entity to the specified region.
| region | The region. |
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 116 of file Cannon.java.
References com.runehive.game.world.entity.Entity.getHeight(), com.runehive.game.world.region.Region.getPlayers(), and com.runehive.game.world.entity.mob.player.Player.isValid().
Referenced by register().
| boolean com.runehive.content.combat.cannon.Cannon.equals | ( | Object | obj | ) |
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 136 of file Cannon.java.
| int com.runehive.content.combat.cannon.Cannon.getAmmunition | ( | ) |
| String com.runehive.content.combat.cannon.Cannon.getName | ( | ) |
Gets the name of this entity.
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 126 of file Cannon.java.
| CustomGameObject com.runehive.content.combat.cannon.Cannon.getObject | ( | ) |
| String com.runehive.content.combat.cannon.Cannon.getOwner | ( | ) |
| Position com.runehive.content.combat.cannon.Cannon.getPosition | ( | ) |
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 50 of file Cannon.java.
References position.
Referenced by register().
| Rotation com.runehive.content.combat.cannon.Cannon.getRotation | ( | ) |
| Setup com.runehive.content.combat.cannon.Cannon.getStage | ( | ) |
| EntityType com.runehive.content.combat.cannon.Cannon.getType | ( | ) |
Gets the EntityType.
EntityType. Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 131 of file Cannon.java.
References com.runehive.game.world.entity.EntityType.DWARF_CANNON.
| int com.runehive.content.combat.cannon.Cannon.hashCode | ( | ) |
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 141 of file Cannon.java.
| boolean com.runehive.content.combat.cannon.Cannon.isFiring | ( | ) |
| void com.runehive.content.combat.cannon.Cannon.register | ( | ) |
Registers an entity to the World.
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 95 of file Cannon.java.
References addToRegion(), com.runehive.game.world.region.Region.containsObject(), com.runehive.game.world.entity.Entity.getHeight(), getPosition(), com.runehive.game.world.entity.Entity.getRegion(), com.runehive.game.world.entity.Entity.isRegistered(), com.runehive.game.world.entity.Entity.setPosition(), and com.runehive.game.world.entity.Entity.setRegistered().
| void com.runehive.content.combat.cannon.Cannon.removeFromRegion | ( | Region | region | ) |
Removes this entity from the specified region.
| region | The region. |
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 121 of file Cannon.java.
References com.runehive.game.world.entity.Entity.getHeight(), com.runehive.game.world.region.Region.getPlayers(), and com.runehive.game.world.entity.mob.player.Player.isValid().
| void com.runehive.content.combat.cannon.Cannon.setAmmunition | ( | int | ammunition | ) |
Definition at line 58 of file Cannon.java.
References ammunition.
| void com.runehive.content.combat.cannon.Cannon.setFiring | ( | boolean | firing | ) |
| void com.runehive.content.combat.cannon.Cannon.setObject | ( | CustomGameObject | object | ) |
| void com.runehive.content.combat.cannon.Cannon.setRotation | ( | Rotation | rotation | ) |
Definition at line 90 of file Cannon.java.
References rotation.
| void com.runehive.content.combat.cannon.Cannon.setStage | ( | Setup | stage | ) |
| void com.runehive.content.combat.cannon.Cannon.unregister | ( | ) |
Unregisters an entity from the World.
Reimplemented from com.runehive.game.world.entity.Entity.
Definition at line 109 of file Cannon.java.
References com.runehive.game.world.entity.Entity.destroy(), and com.runehive.game.world.entity.Entity.isRegistered().
|
private |
Definition at line 27 of file Cannon.java.
Referenced by getAmmunition(), and setAmmunition().
|
private |
Definition at line 29 of file Cannon.java.
Referenced by isFiring(), and setFiring().
|
private |
Definition at line 25 of file Cannon.java.
Referenced by getObject(), and setObject().
|
private |
Definition at line 21 of file Cannon.java.
Referenced by Cannon(), and getOwner().
|
private |
Definition at line 23 of file Cannon.java.
Referenced by Cannon(), and getPosition().
|
private |
Definition at line 33 of file Cannon.java.
Referenced by getRotation(), and setRotation().
|
private |
Definition at line 31 of file Cannon.java.
Referenced by getStage(), and setStage().