Planeshift
psskills.h
Go to the documentation of this file.
1 /*
2  * psskills.h
3  *
4  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef __PSSKILLS_H__
21 #define __PSSKILLS_H__
22 
23 //=============================================================================
24 // Crystal Space Includes
25 //=============================================================================
26 #include <csutil/csstring.h>
27 
28 //=============================================================================
29 // Project Includes
30 //=============================================================================
31 #include "util/poolallocator.h"
32 
33 #include "rpgrules/psmoney.h"
34 #include "util/mathscript.h"
35 
36 //=============================================================================
37 // Local Includes
38 //=============================================================================
39 
40 //used for testing the degree of hardcoding of skills
41 //typedef int PSSKILL;
42 //#define PSSKILL_NONE -1
43 
44 enum PSSKILL
45 {
56 };
57 //These flags define the possible skills categories
59 {
60  PSSKILLS_CATEGORY_STATS = 0,//Intelligence, Charisma, etc.
63  PSSKILLS_CATEGORY_JOBS, //Crafting, mining, etc.
66 };
67 
73 {
74 public:
75  psSkillInfo();
76  ~psSkillInfo();
77 
79 // void *operator new(size_t);
81 // void operator delete(void *);
82 
84  csString name;
85  csString description;
91  int baseCost;
92  csString costScript;
93 
94 private:
96 // static PoolAllocator<psSkillInfo> skillinfopool;
97 
98 };
99 
100 
101 
102 #endif
103 
104 
csString name
Definition: psskills.h:84
psMoney price
Definition: psskills.h:88
csString costScript
Keeps the script used to calculate the cost of this skill.
Definition: psskills.h:92
Represents a skill an NPC, player or pet can learn.
Definition: psskills.h:72
PSSKILLS_CATEGORY category
Definition: psskills.h:89
int practice_factor
Definition: psskills.h:86
PSSKILLS_CATEGORY
Definition: psskills.h:58
int mental_factor
Definition: psskills.h:87
PSSKILL
Definition: psskills.h:44
PSSKILL id
The new operator is overriden to call PoolAllocator template functions.
Definition: psskills.h:83
csString description
Definition: psskills.h:85
int baseCost
The base cost that this skill requires. Used to calculate costs for next rank.
Definition: psskills.h:91