|
Crossfire::Protocol::Base - client protocol module |
Crossfire::Protocol::Base - client protocol module
use base 'Crossfire::Protocol::Base'; # you have to subclass
Base class to implement a crossfire client.
$spell = {
tag => ...,
level => ...,
casting_time => ...,
mana => ...,
grace => ...,
damage => ...,
skill => ...,
path => ...,
face => ...,
name => ...,
message => ...,
};
current <flags> <x> <y> <width> <height> <hashstring>
face_find returned it, in which case
$changed is false, or because we got an update, in which case
$changed is true).
$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.
If the server supports a fixed version of the ncom command and this is detected by this module, the following is also supported:
If the callback $cb1 is given, calls it with the absolute time when
this command has finished processing, as soon as this information is
available.
If the callback $cb2 is given it will be called when the command has
finished processing, to the best knowledge of this module :)
Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/
Robin Redeker <elmex@ta-sa.org> http://www.ta-sa.org/
|
Crossfire::Protocol::Base - client protocol module |