Uses of Class
games.stendhal.server.entity.RPEntity
Packages that use RPEntity
Package
Description
the scripting backend.
Lua scripting interface.
Entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
This package handles status effects such as eating, poisoned, confused.
-
Uses of RPEntity in games.stendhal.server.core.engine
Methods in games.stendhal.server.core.engine that return types with arguments of type RPEntityModifier and TypeMethodDescriptionStendhalRPZone.getPlayerAndFriends()Gets all players in this zone, as well as friendly entities such as sheep.Methods in games.stendhal.server.core.engine with parameters of type RPEntityModifier and TypeMethodDescriptionvoidStendhalRPZone.addToPlayersAndFriends(RPEntity object) adds an RPEntity to the playersAndFriends list.voidvoidvoidStendhalRPRuleProcessor.killRPEntity(RPEntity entity, Entity killer) Kills an RPEntity.voidvoidvoidvoidLog a summoned item. -
Uses of RPEntity in games.stendhal.server.core.engine.db
Methods in games.stendhal.server.core.engine.db with parameters of type RPEntityModifier and TypeMethodDescriptionvoidStendhalItemDAO.itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, int itemid, RPEntity player, String event, String param1, String param2, String param3, String param4) writes a log entryvoidStendhalItemDAO.itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, RPObject item, RPEntity player, String event, String param1, String param2, String param3, String param4) writes a log entry -
Uses of RPEntity in games.stendhal.server.core.engine.dbcommand
Constructors in games.stendhal.server.core.engine.dbcommand with parameters of type RPEntityModifierConstructorDescriptionLogMergeItemEventCommand(RPEntity player, RPObject oldItem, RPObject outlivingItem) logs merging of item stacksLogSimpleItemEventCommand(RPObject item, RPEntity player, String event, String param1, String param2, String param3, String param4) creates a simple item log commandLogSplitItemEventCommand(RPEntity player, RPObject item, RPObject newItem) logs merging of item stacks -
Uses of RPEntity in games.stendhal.server.core.events
Methods in games.stendhal.server.core.events with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.core.rp
Methods in games.stendhal.server.core.rp with parameters of type RPEntityModifier and TypeMethodDescriptionstatic booleanStendhalRPAction.playerAttack(Player player, RPEntity defender) Lets the attacker try to attack the defender.static voidStendhalRPAction.startAttack(Player player, RPEntity victim) Do logic for starting an attack on an entity. -
Uses of RPEntity in games.stendhal.server.core.scripting
Subclasses of RPEntity in games.stendhal.server.core.scriptingMethods in games.stendhal.server.core.scripting with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.core.scripting.lua
Methods in games.stendhal.server.core.scripting.lua with parameters of type RPEntityModifier and TypeMethodDescriptionvoidDeprecated.Use {@link games.stendhal.server.entity.GuidedEntity#setPath(FixedPath).voidLuaEntityHelper.setPathAndPosition(RPEntity entity, org.luaj.vm2.LuaTable table, Boolean loop) Deprecated. -
Uses of RPEntity in games.stendhal.server.entity
Subclasses of RPEntity in games.stendhal.server.entityModifier and TypeClassDescriptionclassDefines an entity whose appearance (outfit) can be changed.Methods in games.stendhal.server.entity that return RPEntityModifier and TypeMethodDescriptionRPEntity.getAttackTarget()Return the RPEntity that this entity is attacking.Methods in games.stendhal.server.entity that return types with arguments of type RPEntityModifier and TypeMethodDescriptionRPEntity.getAttackingRPEntities()Returns the RPEntities that are attacking this character.Methods in games.stendhal.server.entity with parameters of type RPEntityModifier and TypeMethodDescriptionbooleanRPEntity.canDoRangeAttack(RPEntity target, int maxrange) Can this entity do a distance attack on the given target?booleanChooses randomly if this has hit the defender, or if this missed him.intRPEntity.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType) Is called when this has hit the given defender.protected intRPEntity.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType, boolean isRanged, int maxRange) Is called when this has hit the given defender.voidRPEntity.handleLifesteal(RPEntity attacker, List<Item> attackerWeapons, int damage) Calculate lifesteal and update hp of source.RPEntity.maybeDropDroppables(RPEntity attacker) if defender (this entity) is carrying a droppable item, then attacker and defender both roll d20, and if attacker rolls higher, the defender drops the droppable.voidRPEntity.onRejectedAttackStart(RPEntity attacker) Action when entity cannot be attacked.voidModify the entity to order to attack the target entity. -
Uses of RPEntity in games.stendhal.server.entity.creature
Subclasses of RPEntity in games.stendhal.server.entity.creatureModifier and TypeClassDescriptionclassAn creature that will only target enemies which are within a specified area.classA creature that will be attacked by normal Creatures.classA baby dragon is a domestic animal that can be owned by a player.classA cat is a domestic animal that can be owned by a player.classServer-side representation of a creature.classA creature that will give no XP to killers.classA domestic animal can be owned by a player;classAn ItemChangeGuardCreature is a creature that is responsible for guarding a special item (e.g.classAn ItemGuardCreature is a creature that is responsible for guarding a special item (e.g.classA pet is a domestic animal that can be owned by a player.classA purple dragon is a domestic animal that can be owned by a player.classA Raid creature is a creature that doesn't make players killed by it to lose any XP, ATK or DEF.classMethods in games.stendhal.server.entity.creature that return RPEntityModifier and TypeMethodDescriptionCircumstancesOfDeath.getKiller()Creature.getNearestEnemy(double range) Returns the nearest enemy, which is reachable or otherwise attackable.CircumstancesOfDeath.getVictim()Methods in games.stendhal.server.entity.creature that return types with arguments of type RPEntityModifier and TypeMethodDescriptionArenaCreature.getEnemyList()AttackableCreature.getEnemyList()Creature.getEnemyList()Returns a list of enemies.Methods in games.stendhal.server.entity.creature with parameters of type RPEntityConstructors in games.stendhal.server.entity.creature with parameters of type RPEntityModifierConstructorDescriptionCircumstancesOfDeath(RPEntity killer, RPEntity victim, StendhalRPZone zone) -
Uses of RPEntity in games.stendhal.server.entity.creature.impl.attack
Methods in games.stendhal.server.entity.creature.impl.attack with parameters of type RPEntityModifier and TypeMethodDescriptionbooleanAttackStrategy.canAttackNow(Creature attacker, RPEntity target) Can the specified creature do an attack against a specified target? -
Uses of RPEntity in games.stendhal.server.entity.item
Methods in games.stendhal.server.entity.item with parameters of type RPEntityModifier and TypeMethodDescriptionbooleanOwnedItem.canEquipToSlot(RPEntity entity, String slot) Override to check if an entity can equip to slot.voidBreakableWeapon.deteriorate(RPEntity user) voidItem.deteriorate(RPEntity user) Can be overridden to handle actions on user entity.voidProjectile.onAttackAttempt(RPEntity target, RPEntity attacker) voidWeapon.onAttackAttempt(RPEntity target, RPEntity attacker) voidWeaponImpl.onAttackAttempt(RPEntity target, RPEntity attacker) Action when item is used as a weapon.voidProjectile.onAttackSuccess(RPEntity target, RPEntity attacker, int damage) voidWeapon.onAttackSuccess(RPEntity target, RPEntity attacker, int damage) voidWeaponImpl.onAttackSuccess(RPEntity target, RPEntity attacker, int damage) Action when item is used as a weapon.voidOwnedItem.onEquipFail(RPEntity entity, String slot) Override for action to take when an entity cannot equip to specified slot.booleanCaptureTheFlagFlag.onEquipped(RPEntity equipper, String slot) if flag is held, update player's outfit.booleanItem.onEquipped(RPEntity equipper, String slot) opportunity to affect the player when equipped currently returns boolean, to indicate whether it made any change TODO: should this return some sort of undoable thing (if it can be undone?)booleanRingOfLife.onEquipped(RPEntity entity, String slot) Notify the player that it is not required to carry this ring in the finger slot to get its benefits.booleanSlotActivatedItem.onEquipped(RPEntity owner, String slot) Action to take when item is equipped.booleanbooleanbooleanbooleanVerifies item is near to player.booleanbooleanbooleanbooleanIs invoked when the necromancer staff is used.booleanbooleanbooleanthe overridden method verifies item is near to player.booleanprotected booleanAreaUseItem.onUsedInArea(RPEntity user) Inheriting classes can override this to determine action to execute when item is used in correct area.protected booleanAreaUseItem.onUsedInArea(RPEntity user, StendhalRPZone zone, int x, int y) Inheriting classes can override this to determine action to execute when item is used in correct area.protected booleanMetalDetector.onUsedInArea(RPEntity user, StendhalRPZone zone, int x, int y) protected booleanShovel.onUsedInArea(RPEntity user, StendhalRPZone zone, int x, int y) voidConstructors in games.stendhal.server.entity.item with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.item.behavior
Methods in games.stendhal.server.entity.item.behavior with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.item.consumption
Constructors in games.stendhal.server.entity.item.consumption with parameters of type RPEntityModifierConstructorDescriptionStatusHealerEater(RPEntity entity, StatusType status) Constructor defining one status healed by the item.StatusHealerEater(RPEntity entity, Set<StatusType> status) Constructor defining multiple statuses healed by the item. -
Uses of RPEntity in games.stendhal.server.entity.item.scroll
Methods in games.stendhal.server.entity.item.scroll with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.item.timed
Methods in games.stendhal.server.entity.item.timed with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.mapstuff
Methods in games.stendhal.server.entity.mapstuff with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.area
Methods in games.stendhal.server.entity.mapstuff.area with parameters of type RPEntityModifier and TypeMethodDescriptionprotected voidAdd an entity to the target list.protected floatDamagingArea.calculateDefense(RPEntity entity) Calculate the entity's final defense value.protected booleanInflict damage on an entity.protected booleanInflict damage on an entity.protected booleanDamagingArea.handleAdded(RPEntity entity) An entity has entered the area.protected booleanLifeDrainArea.handleAdded(RPEntity entity) An entity has entered the area.protected booleanOccupantArea.handleAdded(RPEntity entity) An entity has entered the area.protected booleanDamagingArea.handleInterval(RPEntity entity) Apply actions done at regular intervals.protected booleanLifeDrainArea.handleInterval(RPEntity entity) Apply actions done at regular intervals.protected booleanOccupantArea.handleInterval(RPEntity entity) Apply actions done at regular intervals.protected booleanDamagingArea.handleMovement(RPEntity entity) Apply actions done while moving.protected booleanOccupantArea.handleMovement(RPEntity entity) Apply actions done while moving.protected voidDamagingArea.handleRemoved(RPEntity entity) An entity has left the area.protected voidLifeDrainArea.handleRemoved(RPEntity entity) An entity has left the area.protected voidOccupantArea.handleRemoved(RPEntity entity) An entity has left the area.booleanOccupantArea.isOccupant(RPEntity entity) Check if an entity is an [acknowledged] occupant of this area.protected voidOccupantArea.removeTarget(RPEntity entity) Remove an entity from the target list. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.chest
Methods in games.stendhal.server.entity.mapstuff.chest that return RPEntityModifier and TypeMethodDescriptionPersonalChest.getAttending()Gets the entitiy which is currently served by this chest.Methods in games.stendhal.server.entity.mapstuff.chest with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.game
Methods in games.stendhal.server.entity.mapstuff.game with parameters of type RPEntityModifier and TypeMethodDescriptionbooleansomeone clicked a switch.voidNineSwitchesGameBoard.usedSwitch(RPEntity user, NineSwitchesGameSwitch gameSwitch) use the specified switch. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.portal
Methods in games.stendhal.server.entity.mapstuff.portal with parameters of type RPEntityModifier and TypeMethodDescriptionprotected abstract booleanDetermine if this portal can be used.protected booleanDetermine if this portal can be used.protected booleanCheck if a player can use the gate.protected booleanprotected booleanDetermine if this portal can be used.protected booleanDetermine if this portal can be used.protected booleanprotected booleanprotected booleanDetermine if this portal can be used.protected booleanDetermine if this portal can be used.voidPortal.onPushedOntoFrom(RPEntity pushed, RPEntity pusher, Point prevPos) Sub-classes can override for actions to be taken if entity was pushed onto portal.booleanUse the portal, if allowed.booleanbooleanTeleport (if the door is now open).booleanbooleanbooleanbooleanOverride so portal does not get "used"booleanvoidDoor.onUsedBackwards(RPEntity user, boolean hadPath) voidPortal.onUsedBackwards(RPEntity user, boolean hadPath) If this portal is the destination of another portal used.protected voidCalled when the user is rejected.protected voidCalled when the user is rejected.protected voidAccessCheckingPortal.sendMessage(RPEntity user, String text) Wrapper to send a message to a user, without getting lost.Constructors in games.stendhal.server.entity.mapstuff.portal with parameters of type RPEntityModifierConstructorDescriptionSendMessage(RPEntity user, String text) Create a message sending turn listener. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.sign
Methods in games.stendhal.server.entity.mapstuff.sign with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.spawner
Methods in games.stendhal.server.entity.mapstuff.spawner with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.useable
Methods in games.stendhal.server.entity.mapstuff.useable with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.entity.npc
Subclasses of RPEntity in games.stendhal.server.entity.npcModifier and TypeClassDescriptionclassSimple entity used in spectacles.classclassclassBase class for ghost NPCs.classclassclassBase class for rat kid NPCs.classA stripped down SpeakerNPC that does not interact with playersclassThis is a finite state machine that implements a chat system.classAn entity that can be used for training a player's ATK & RATK stats.Methods in games.stendhal.server.entity.npc that return RPEntityModifier and TypeMethodDescriptionEventRaiser.getAttending()gets the RPEntity the SpeakerNPC is attending toSpeakerNPC.getAttending()The entity who is currently talking to the NPC, or null if the NPC is currently not taking part in a conversation.Methods in games.stendhal.server.entity.npc with parameters of type RPEntityModifier and TypeMethodDescriptionbooleanTrainingDummy.canBeAttacked(RPEntity entity) Checks requirements for attacking this entity.protected voidIs called when the NPC stops chatting with a player.voidSpeakerNPC.onRejectedAttackStart(RPEntity attacker) someone tried to attack usvoidEventRaiser.setAttending(RPEntity rpentity) Sets the rpentity to whom the SpeakerNPC is currently listening.voidSpeakerNPC.setAttending(RPEntity rpentity) Sets the rpentity to whom the NPC is currently listening. -
Uses of RPEntity in games.stendhal.server.entity.player
Subclasses of RPEntity in games.stendhal.server.entity.playerMethods in games.stendhal.server.entity.player with parameters of type RPEntityModifier and TypeMethodDescriptionbooleanReturn true if player can push entity.intPlayer.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType) This is overridden to reduce damage done by players to creatures to make up for the increased hit chance.protected voidvoidvoidCalled when player push entity.booleanInvoked when the object is used. -
Uses of RPEntity in games.stendhal.server.entity.status
Methods in games.stendhal.server.entity.status with parameters of type RPEntityModifier and TypeMethodDescriptionvoidPoisonAttacker.onAttackAttempt(RPEntity target, RPEntity attacker) voidStatusAttacker.onAttackAttempt(RPEntity target, RPEntity attacker) an attempt to attack the target, it may succeed or notvoidvoidthe target was hit, this may or may not have caused damageConstructors in games.stendhal.server.entity.status with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.maps.nalwor.forest
Subclasses of RPEntity in games.stendhal.server.maps.nalwor.forestModifier and TypeClassDescriptionclassstatic classNPC class that manages access to training area.Methods in games.stendhal.server.maps.nalwor.forest with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.maps.quests.a_grandfathers_wish
Subclasses of RPEntity in games.stendhal.server.maps.quests.a_grandfathers_wishMethods in games.stendhal.server.maps.quests.a_grandfathers_wish with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.maps.quests.captureflag
Methods in games.stendhal.server.maps.quests.captureflag with parameters of type RPEntity -
Uses of RPEntity in games.stendhal.server.maps.semos.city
Subclasses of RPEntity in games.stendhal.server.maps.semos.city -
Uses of RPEntity in games.stendhal.server.maps.semos.tavern.market
Subclasses of RPEntity in games.stendhal.server.maps.semos.tavern.marketMethods in games.stendhal.server.maps.semos.tavern.market with parameters of type RPEntity