[wpdev-commits] wolfpack/python char.cpp,1.114,1.115 item.cpp,1.79,1.80
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@pr...> - 2004-01-27 13:18:59
|
Update of /cvsroot/wpdev/wolfpack/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8309/python Modified Files: char.cpp item.cpp Log Message: Final fixes for postprocessing and implementation of a resend tooltip functionality. Index: char.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/python/char.cpp,v retrieving revision 1.114 retrieving revision 1.115 diff -C2 -d -r1.114 -r1.115 *** char.cpp 25 Jan 2004 00:51:35 -0000 1.114 --- char.cpp 25 Jan 2004 20:24:26 -0000 1.115 *************** *** 1611,1614 **** --- 1611,1623 ---- } + static PyObject* wpChar_resendtooltip( wpChar *self, PyObject *args ) + { + if( self->pChar->free ) + return PyFalse; + + self->pChar->resendTooltip(); + return PyTrue; + } + static PyObject* wpChar_additem( wpChar *self, PyObject *args ) { *************** *** 1649,1652 **** --- 1658,1662 ---- { "damage", (getattrofunc)wpChar_damage, METH_VARARGS, "This damages the current character." }, { "update", (getattrofunc)wpChar_update, METH_VARARGS, "Resends the char to all clients in range." }, + { "resendtooltip", (getattrofunc)wpChar_resendtooltip, METH_VARARGS, "Resends the tooltip for this character." }, { "updateflags", (getattrofunc)wpChar_updateflags, METH_VARARGS, "Resends the character if flags have changed (take care, this might look like a move)." }, { "removefromview", (getattrofunc)wpChar_removefromview, METH_VARARGS, "Removes the char from all surrounding clients." }, Index: item.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/python/item.cpp,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** item.cpp 25 Jan 2004 00:51:39 -0000 1.79 --- item.cpp 25 Jan 2004 20:24:26 -0000 1.80 *************** *** 639,642 **** --- 639,651 ---- } + static PyObject* wpItem_resendtooltip( wpItem *self, PyObject *args ) + { + if (!self->pItem->free) { + self->pItem->resendTooltip(); + } + + return PyTrue; + } + static PyMethodDef wpItemMethods[] = { *************** *** 657,660 **** --- 666,670 ---- { "multi", (getattrofunc)wpItem_multi, METH_VARARGS, 0 }, { "lightning", (getattrofunc)wpItem_lightning, METH_VARARGS, 0 }, + { "resendtooltip", (getattrofunc)wpItem_resendtooltip, METH_VARARGS, 0 }, // Effects |