From: Thomas T. <to...@us...> - 2004-02-29 00:48:03
|
Update of /cvsroot/planeshift/planeshift/src/server In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9439 Modified Files: workmanager.h Log Message: Added skills and practice logic to manufacture sytele trade skills. Index: workmanager.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/server/workmanager.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** workmanager.h 21 Feb 2004 04:52:09 -0000 1.12 --- workmanager.h 29 Feb 2004 00:38:12 -0000 1.13 *************** *** 35,38 **** --- 35,42 ---- class Client; + // Define the two work event types + #define MANUFACTURE 0 + #define PRODUCTION 1 + /** * This class keeps natural resource concentrations across the *************** *** 97,100 **** --- 101,105 ---- // psContainerContents* contents; int patternId; + float currentQuality; protected: *************** *** 107,111 **** bool IsTransformable(long targetId, int targetQty); //? bool DoTransformation if (!StartTransformation(combinationId, combinationQty ) ) ! bool TransformContainedItem(long newId, int newQty); bool WorkComplete(); --- 112,116 ---- bool IsTransformable(long targetId, int targetQty); //? bool DoTransformation if (!StartTransformation(combinationId, combinationQty ) ) ! bool TransformContainedItem(long newId, int newQty, float itemQuality); bool WorkComplete(); *************** *** 120,123 **** --- 125,131 ---- void Initialize(); void HandleUse(Client *client, bool on); + void GoodTransformation(psTradeTransformations* trans); + void GarbageTransformation(psTradeTransformations* trans); + bool ApplySkills(psTradeTransformations* trans); void HandleProduction(Client *client,const char *type,const char *reward); NaturalResource *FindNearestResource(const char *reward,iSector *sector, csVector3& pos); *************** *** 147,152 **** NaturalResource *nr; Client *client; ! csVector3 position; ! int type; }; --- 155,160 ---- NaturalResource *nr; Client *client; ! csVector3 position; ! int type; }; |