From: Christophe P. <at...@us...> - 2002-10-30 01:07:17
|
Update of /cvsroot/planeshift/planeshift/src/common/rpgrules In directory usw-pr-cvs1:/tmp/cvs-serv7051 Modified Files: psrpginfo.h Log Message: Adding physical traits customization for the race class... the modified rpgrules.xml file will come soon. Look at docs/history.txt for more infos. Index: psrpginfo.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/rpgrules/psrpginfo.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** psrpginfo.h 11 Oct 2002 22:36:10 -0000 1.12 --- psrpginfo.h 30 Oct 2002 01:07:11 -0000 1.13 *************** *** 41,44 **** --- 41,56 ---- int value; }; + + // This will handle custom char differences, like hairs, eyes or nose. + //For now I am using a common structure for all of them because we assume + //that each choice has got a name, a texture to be applied on the model and + //why not, an ID. + // If they get different later, we will change that. + struct RaceCustomChoice + { + csString name; + csString texture; + int id; + }; //--------------------------------------------------------------------------- *************** *** 87,90 **** --- 99,107 ---- CS_TYPEDEF_GROWING_ARRAY(skillBonusVector, SkillBonus*); + CS_TYPEDEF_GROWING_ARRAY(eyeColorVector, RaceCustomChoice*); + CS_TYPEDEF_GROWING_ARRAY(hairColorVector, RaceCustomChoice*); + CS_TYPEDEF_GROWING_ARRAY(noseTypeVector, RaceCustomChoice*); + CS_TYPEDEF_GROWING_ARRAY(chinTypeVector, RaceCustomChoice*); + //--------------------------------------------------------------------------- *************** *** 99,102 **** --- 116,128 ---- csString& GetSpecies() { return species; } csString& GetDescription() { return info; } + + // Returns all possible eye colors for a given race + eyeColorVector& GetEyeColors() { return eyeColors;} + // Returns all possible hair colors for a given race + hairColorVector& GetHairColors() { return hairColors;} + // Returns all possible nose types for a given race + noseTypeVector& GetNoseTypes() { return noseTypes;} + // Returns all possible chin types for a given race + chinTypeVector& GetChinTypes() { return chinTypes;} statBonusVector& GetStatBonuses() { return statBonuses;} *************** *** 122,125 **** --- 148,160 ---- //penalityVector penalities; skillBonusVector skillBonuses; + + // Contains all the different eye colors for a given race + eyeColorVector eyeColors; + // Contains all the different hair colors for a given race + hairColorVector hairColors; + // Contains all the different nose types for a given race + noseTypeVector noseTypes; + // Contains all the different chin types for a given race + chinTypeVector chinTypes; }; |