[wpdev-commits] wolfpack items.cpp,1.422,1.423
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-07-17 08:23:35
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27565 Modified Files: items.cpp Log Message: Documentation Updates Index: items.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/items.cpp,v retrieving revision 1.422 retrieving revision 1.423 diff -C2 -d -r1.422 -r1.423 *** items.cpp 5 Jul 2004 18:23:06 -0000 1.422 --- items.cpp 17 Jul 2004 08:23:27 -0000 1.423 *************** *** 174,178 **** /***************************************************************************** ! cItem member functions *****************************************************************************/ --- 174,178 ---- /***************************************************************************** ! * cItem member functions *****************************************************************************/ *************** *** 249,261 **** } ! /////////////// ! // Name: ReduceAmount ! // history: by Duke, 4.06.2000 ! // added P_ITEM interface Duke, 3.10.2000 ! // made it the first member of cItem Duke, 23.12.2000 ! // Purpose: reduces the given item's amount by 'amt' and deletes it if ! // necessary and returns 0. If the request could not be fully satisfied, ! // the remainder is returned ! // long cItem::reduceAmount( const short amt ) { --- 249,261 ---- } ! /* ! * Name: ReduceAmount ! * History: by Duke, 4.06.2000 ! * added P_ITEM interface Duke, 3.10.2000 ! * made it the first member of cItem Duke, 23.12.2000 ! * Purpose: reduces the given item's amount by 'amt' and deletes it if ! * necessary and returns 0. If the request could not be fully satisfied, ! * the remainder is returned ! */ long cItem::reduceAmount( const short amt ) { *************** *** 293,308 **** } ! // author: LB purpose: returns the type of pack ! // to handle its x,y coord system corretly. ! // interpretation of the result: ! // valid x,y ranges depending on type: ! // type -1 : no pack ! // type 1 : y-range 50 .. 100 ! // type 2 : y-range 30 .. 80 ! // type 3 : y-range 100 .. 150 ! // type 4 : y-range 40 .. 140 ! // x-range 18 .. 118 for 1,2,3 ! // 40 .. 140 for 4 ! // short cItem::GetContGumpType() { --- 293,309 ---- } ! /* ! * Author: LB purpose: returns the type of pack ! * to handle its x,y coord system corretly. ! * interpretation of the result: ! * valid x,y ranges depending on type: ! * type -1 : no pack ! * type 1 : y-range 50 .. 100 ! * type 2 : y-range 30 .. 80 ! * type 3 : y-range 100 .. 150 ! * type 4 : y-range 40 .. 140 ! * x-range 18 .. 118 for 1,2,3 ! * 40 .. 140 for 4 ! */ short cItem::GetContGumpType() { *************** *** 502,512 **** } ! /////////////////////// ! // Name: DeleteAmount ! // history: DeleQuan() by Duke, 16.11.2000 ! // moved to cItem (Duke,27.3.2001) ! // Purpose: recurses through the container given by serial and deletes items of ! // the given id and color(if given) until the given amount is reached ! // int cItem::DeleteAmount( int amount, unsigned short _id, unsigned short _color ) { --- 503,513 ---- } ! /* ! * Name: DeleteAmount ! * History: DeleQuan() by Duke, 16.11.2000 ! * moved to cItem (Duke,27.3.2001) ! * Purpose: recurses through the container given by serial and deletes items of ! * the given id and color(if given) until the given amount is reached ! */ int cItem::DeleteAmount( int amount, unsigned short _id, unsigned short _color ) { *************** *** 1795,1799 **** } /* ! \rproperty container The <object id="CHAR">CHAR</object> or <object id="ITEM">ITEM</object> this item is contained in. See the layer property for the layer this item is equipped on if this is a character. This property may also be None. --- 1796,1800 ---- } /* ! \property container The <object id="CHAR">CHAR</object> or <object id="ITEM">ITEM</object> this item is contained in. See the layer property for the layer this item is equipped on if this is a character. This property may also be None. *************** *** 2080,2086 **** else GET_PROPERTY( "twohanded", priv_ & 0x20 ? 1 : 0 ) ! /* \rproperty item.corpse Specifies whether this item is a corpse or not. ! */ else GET_PROPERTY( "corpse", corpse() ) --- 2081,2087 ---- else GET_PROPERTY( "twohanded", priv_ & 0x20 ? 1 : 0 ) ! /* \rproperty item.corpse Specifies whether this item is a corpse or not. ! */ else GET_PROPERTY( "corpse", corpse() ) |