Search in sources :

Example 1 with UpdateRunEnergyMessage

use of org.apollo.game.message.impl.UpdateRunEnergyMessage in project apollo by apollo-rsps.

the class Player method setRunEnergy.

/**
 * Sets the player's run energy.
 *
 * @param energy The energy.
 */
public void setRunEnergy(int energy) {
    attributes.set("run_energy", new NumericalAttribute(energy));
    send(new UpdateRunEnergyMessage(energy));
}
Also used : NumericalAttribute(org.apollo.game.model.entity.attr.NumericalAttribute) UpdateRunEnergyMessage(org.apollo.game.message.impl.UpdateRunEnergyMessage)

Aggregations

UpdateRunEnergyMessage (org.apollo.game.message.impl.UpdateRunEnergyMessage)1 NumericalAttribute (org.apollo.game.model.entity.attr.NumericalAttribute)1