Deliantra::Protocol::Base - client protocol module
use base 'Deliantra::Protocol::Base'; # you have to subclass
Base class to implement a crossfire client.
Delays an addme until thre guard is destroyed.
addme
Send a setup request for the given setting.
Called when a setup reply is received from the server.
Called after the last setup packet has been received, just before an addme request is sent.
tag, weight, face, name
$spell = { tag => ..., minlevel => ..., casting_time => ..., mana => ..., grace => ..., level => ..., skill => ..., path => ..., face => ..., name => ..., };
(the default implementation calls delete then add)
current <flags> <x> <y> <width> <height> <hashstring>
Called whenever the map is to be erased completely.
Called whenever map data or faces have been received.
Called whenever the map has been scrolled.
Called with the face number of face structure whenever a face image becomes known (either because face_find returned it, in which case $changed is false, or because we got an update, in which case $changed is true).
face_find
$changed
Find and pass to the $cb callback the png image data for the given face, or the empty list if no face could be found, in which case it will be requested from the server.
$cb
Send a single packet/line to the server.
Send a single packet/line to the server and encodes it to utf-8 before sending it.
Uses command to send a user-level command to the server. Encodes the command to UTF-8.
Sets the pickup configuration.
Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/ Robin Redeker <elmex@ta-sa.org> http://www.ta-sa.org/
To install Deliantra, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Deliantra
CPAN shell
perl -MCPAN -e shell install Deliantra
For more information on module installation, please visit the detailed CPAN module installation guide.