skillObj Class Reference

#include <skill-obj.hpp>

Inheritance diagram for skillObj:

Inheritance graph
[legend]
Collaboration diagram for skillObj:

Collaboration graph
[legend]
List of all members.

Detailed Description

The skillObj class defines a way of handling an unexpurgiated list of skills taken primarily from the MegaTraveller Player's Manual as published by GDW.

As more skills are found in other volumes they will get added as well.

In the constructor cascade skills are handled and resolved.

Definition at line 41 of file skill-obj.hpp.

Public Member Functions

 skillObj (personObj *p, int ix, int l)
 skillObj (personObj *p, int ix)


Constructor & Destructor Documentation

skillObj::skillObj ( personObj p,
int  ix,
int  l 
)

Constructor

Parameters:
p -- pointer to the personObj that the skill is being assigned to.
ix -- Integer index into the un-expurgiated list of skills
l -- level increment to set the skill to.

Resolve any cascade skills we have happening here which of course may modify the results of calling the super object's constructor.

Definition at line 218 of file skill-obj.cpp.

Referenced by skillObj().

00218                                             : skillEntry(skillTable[ix],l){
00219         
00224         switch(ix){
00225                 case ACADEMIC:
00226                         this->AcademicCascade(p);
00227                         break;
00228                 case BLADE_COMBAT:
00229                         this->BladeCombatCascade();
00230                         break;
00231                 case GUN_COMBAT:
00232                         this->GunCombatCascade();
00233                         break;
00234                 case SCIENCE:
00235                         this->ScienceCascade();
00236                         break;
00237                 case ANIMAL_HANDLING:
00238                         this->AnimalHandlingCascade();
00239                         break;
00240                 case ARCHAIC_WEAPONS:
00241                         this->ArchaicWeaponCascade();
00242                         break;
00243                 
00244                 default: 
00245                         break;
00246         };
00247         
00248 }

Here is the caller graph for this function:

skillObj::skillObj ( personObj p,
int  ix 
)

Alternate constructor. In this case the constructor defined above is invoked with a "1" passed as the increment.

Definition at line 251 of file skill-obj.cpp.

References skillObj().

00251                                       {
00252         skillObj(p,ix,1);
00253 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Mar 7 16:43:01 2008 for frpuniverse by  doxygen 1.4.7