Uses of Class
games.stendhal.server.entity.RPEntity
Package
Description
the scripting backend.
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
Modifier and TypeMethodDescriptionStendhalRPZone.getPlayerAndFriends()
Gets all players in this zone, as well as friendly entities such as sheep.Modifier and TypeMethodDescriptionvoid
StendhalRPZone.addToPlayersAndFriends(RPEntity object)
adds an RPEntity to the playersAndFriends list.void
void
void
StendhalRPRuleProcessor.killRPEntity(RPEntity entity, Entity killer)
Kills an RPEntity.void
void
void
-
Uses of RPEntity in games.stendhal.server.core.engine.db
Modifier and TypeMethodDescriptionvoid
StendhalItemDAO.itemLogWriteEntry(DBTransaction transaction, Timestamp timestamp, int itemid, RPEntity player, String event, String param1, String param2, String param3, String param4)
writes a log entryvoid
StendhalItemDAO.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
ModifierConstructorDescriptionLogMergeItemEventCommand(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
-
Uses of RPEntity in games.stendhal.server.core.rp
Modifier and TypeMethodDescriptionstatic boolean
StendhalRPAction.playerAttack(Player player, RPEntity defender)
Lets the attacker try to attack the defender.static void
StendhalRPAction.startAttack(Player player, RPEntity victim)
Do logic for starting an attack on an entity. -
Uses of RPEntity in games.stendhal.server.core.scripting
-
Uses of RPEntity in games.stendhal.server.core.scripting.lua
Modifier and TypeMethodDescriptionvoid
Deprecated.Use {@link games.stendhal.server.entity.GuidedEntity#setPath(FixedPath).void
LuaEntityHelper.setPathAndPosition(RPEntity entity, org.luaj.vm2.LuaTable table, Boolean loop)
Deprecated. -
Uses of RPEntity in games.stendhal.server.entity
Modifier and TypeClassDescriptionclass
Defines an entity whose appearance (outfit) can be changed.Modifier and TypeMethodDescriptionRPEntity.getAttackTarget()
Return the RPEntity that this entity is attacking.Modifier and TypeMethodDescriptionRPEntity.getAttackingRPEntities()
Returns the RPEntities that are attacking this character.Modifier and TypeMethodDescriptionprotected void
RPEntity.applyDefXP(RPEntity entity)
boolean
RPEntity.canDoRangeAttack(RPEntity target, int maxrange)
Can this entity do a distance attack on the given target?boolean
Chooses randomly if this has hit the defender, or if this missed him.int
RPEntity.damageDone(RPEntity defender, double attackingWeaponsValue, Nature damageType)
Is called when this has hit the given defender.boolean
RPEntity.getsFightXpFrom(RPEntity enemy)
void
RPEntity.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.void
Modify the entity to order to attack the target entity. -
Uses of RPEntity in games.stendhal.server.entity.creature
Modifier and TypeClassDescriptionclass
An creature that will only target enemies which are within a specified area.class
A creature that will be attacked by normal Creatures.class
A baby dragon is a domestic animal that can be owned by a player.class
A cat is a domestic animal that can be owned by a player.class
Server-side representation of a creature.class
A creature that will give no XP to killers.class
A domestic animal can be owned by a player;class
An ItemChangeGuardCreature is a creature that is responsible for guarding a special item (e.g.class
An ItemGuardCreature is a creature that is responsible for guarding a special item (e.g.class
A pet is a domestic animal that can be owned by a player.class
A purple dragon is a domestic animal that can be owned by a player.class
A Raid creature is a creature that doesn't make players killed by it to lose any XP, ATK or DEF.class
Modifier and TypeMethodDescriptionCircumstancesOfDeath.getKiller()
Creature.getNearestEnemy(double range)
Returns the nearest enemy, which is reachable or otherwise attackable.CircumstancesOfDeath.getVictim()
Modifier and TypeMethodDescriptionArenaCreature.getEnemyList()
AttackableCreature.getEnemyList()
Creature.getEnemyList()
Returns a list of enemies.ModifierConstructorDescriptionCircumstancesOfDeath(RPEntity killer, RPEntity victim, StendhalRPZone zone)
-
Uses of RPEntity in games.stendhal.server.entity.creature.impl.attack
Modifier and TypeMethodDescriptionboolean
AttackStrategy.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
Modifier and TypeMethodDescriptionboolean
OwnedItem.canEquipToSlot(RPEntity entity, String slot)
Override to check if an entity can equip to slot.void
BreakableItem.deteriorate(RPEntity user)
void
Item.deteriorate(RPEntity user)
Can be overridden to handle actions on user entity.void
OwnedItem.onEquipFail(RPEntity entity, String slot)
Override for action to take when an entity cannot equip to specified slot.boolean
CaptureTheFlagFlag.onEquipped(RPEntity equipper, String slot)
if flag is held, update player's outfit.boolean
Item.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?)boolean
RingOfLife.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.boolean
SlotActivatedItem.onEquipped(RPEntity owner, String slot)
Action to take when item is equipped.boolean
boolean
boolean
boolean
Verifies item is near to player.boolean
boolean
boolean
Is invoked when the necromancer staff is used.boolean
boolean
boolean
the overridden method verifies item is near to player.boolean
protected boolean
AreaUseItem.onUsedInArea(RPEntity user)
Inheriting classes can override this to determine action to execute when item is used in correct area.protected boolean
AreaUseItem.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 boolean
MetalDetector.onUsedInArea(RPEntity user, StendhalRPZone zone, int x, int y)
protected boolean
Shovel.onUsedInArea(RPEntity user, StendhalRPZone zone, int x, int y)
void
-
Uses of RPEntity in games.stendhal.server.entity.item.behavior
-
Uses of RPEntity in games.stendhal.server.entity.item.consumption
ModifierConstructorDescriptionStatusHealerEater(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
-
Uses of RPEntity in games.stendhal.server.entity.item.timed
-
Uses of RPEntity in games.stendhal.server.entity.mapstuff
-
Uses of RPEntity in games.stendhal.server.entity.mapstuff.area
Modifier and TypeMethodDescriptionprotected void
Add an entity to the target list.protected float
DamagingArea.calculateDefense(RPEntity entity)
Calculate the entity's final defense value.protected boolean
Inflict damage on an entity.protected boolean
Inflict damage on an entity.protected boolean
DamagingArea.handleAdded(RPEntity entity)
An entity has entered the area.protected boolean
LifeDrainArea.handleAdded(RPEntity entity)
An entity has entered the area.protected boolean
OccupantArea.handleAdded(RPEntity entity)
An entity has entered the area.protected boolean
DamagingArea.handleInterval(RPEntity entity)
Apply actions done at regular intervals.protected boolean
LifeDrainArea.handleInterval(RPEntity entity)
Apply actions done at regular intervals.protected boolean
OccupantArea.handleInterval(RPEntity entity)
Apply actions done at regular intervals.protected boolean
DamagingArea.handleMovement(RPEntity entity)
Apply actions done while moving.protected boolean
OccupantArea.handleMovement(RPEntity entity)
Apply actions done while moving.protected void
DamagingArea.handleRemoved(RPEntity entity)
An entity has left the area.protected void
LifeDrainArea.handleRemoved(RPEntity entity)
An entity has left the area.protected void
OccupantArea.handleRemoved(RPEntity entity)
An entity has left the area.boolean
OccupantArea.isOccupant(RPEntity entity)
Check if an entity is an [acknowledged] occupant of this area.protected void
OccupantArea.removeTarget(RPEntity entity)
Remove an entity from the target list. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.chest
Modifier and TypeMethodDescriptionPersonalChest.getAttending()
Gets the entitiy which is currently served by this chest. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.game
Modifier and TypeMethodDescriptionboolean
someone clicked a switch.void
NineSwitchesGameBoard.usedSwitch(RPEntity user, NineSwitchesGameSwitch gameSwitch)
use the specified switch. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.portal
Modifier and TypeMethodDescriptionprotected boolean
Determine if this portal can be used.protected boolean
Check if a player can use the gate.protected boolean
protected boolean
Determine if this portal can be used.protected boolean
Determine if this portal can be used.protected boolean
protected boolean
protected boolean
Determine if this portal can be used.protected boolean
Determine if this portal can be used.void
Portal.onPushedOntoFrom(RPEntity pushed, RPEntity pusher, Point prevPos)
Sub-classes can override for actions to be taken if entity was pushed onto portal.boolean
boolean
Teleport (if the door is now open).boolean
boolean
boolean
boolean
Override so portal does not get "used"boolean
void
Door.onUsedBackwards(RPEntity user, boolean hadPath)
void
Portal.onUsedBackwards(RPEntity user, boolean hadPath)
If this portal is the destination of another portal used.protected void
Called when the user is rejected. -
Uses of RPEntity in games.stendhal.server.entity.mapstuff.sign
-
Uses of RPEntity in games.stendhal.server.entity.mapstuff.spawner
-
Uses of RPEntity in games.stendhal.server.entity.mapstuff.useable
-
Uses of RPEntity in games.stendhal.server.entity.npc
Modifier and TypeClassDescriptionclass
Simple entity used in spectacles.class
class
Base class for ghost NPCs.class
class
class
Base class for rat kid NPCs.class
A stripped down SpeakerNPC that does not interact with playersclass
This is a finite state machine that implements a chat system.class
An entity that can be used for training a player's ATK & RATK stats.Modifier 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.Modifier and TypeMethodDescriptionboolean
TrainingDummy.canBeAttacked(RPEntity entity)
Checks requirements for attacking this entity.protected void
Is called when the NPC stops chatting with a player.void
SpeakerNPC.onRejectedAttackStart(RPEntity attacker)
someone tried to attack usvoid
EventRaiser.setAttending(RPEntity rpentity)
Sets the rpentity to whom the SpeakerNPC is currently listening.void
SpeakerNPC.setAttending(RPEntity rpentity)
Sets the rpentity to whom the NPC is currently listening. -
Uses of RPEntity in games.stendhal.server.entity.player
Modifier and TypeMethodDescriptionprotected void
Player.applyDefXP(RPEntity entity)
boolean
Return true if player can push entity.protected void
void
void
Called when player push entity.boolean
Invoked when the object is used. -
Uses of RPEntity in games.stendhal.server.entity.status
Modifier and TypeMethodDescriptionvoid
PoisonAttacker.onAttackAttempt(RPEntity target, RPEntity attacker)
void
StatusAttacker.onAttackAttempt(RPEntity target, RPEntity attacker)
an attempt to attack the target, it may succeed or notvoid
void
the target was hit, this may or may not have caused damage -
Uses of RPEntity in games.stendhal.server.maps.nalwor.forest
Modifier and TypeClassDescriptionclass
static class
NPC class that manages access to training area. -
Uses of RPEntity in games.stendhal.server.maps.quests.captureflag
-
Uses of RPEntity in games.stendhal.server.maps.semos.city
-
Uses of RPEntity in games.stendhal.server.maps.semos.tavern.market