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
{
46
PSSKILL_NONE
= -1,
47
PSSKILL_LIGHTARMOR
= 7,
48
PSSKILL_MEDIUMARMOR
= 8,
49
PSSKILL_HEAVYARMOR
= 9,
50
PSSKILL_AGI
= 46,
51
PSSKILL_CHA
= 47,
52
PSSKILL_END
= 48,
53
PSSKILL_INT
= 49,
54
PSSKILL_STR
= 50,
55
PSSKILL_WILL
= 51,
56
};
57
//These flags define the possible skills categories
58
enum
PSSKILLS_CATEGORY
59
{
60
PSSKILLS_CATEGORY_STATS
= 0,
//Intelligence, Charisma, etc.
61
PSSKILLS_CATEGORY_COMBAT
,
62
PSSKILLS_CATEGORY_MAGIC
,
63
PSSKILLS_CATEGORY_JOBS
,
//Crafting, mining, etc.
64
PSSKILLS_CATEGORY_VARIOUS
,
65
PSSKILLS_CATEGORY_FACTIONS
66
};
67
72
class
psSkillInfo
73
{
74
public
:
75
psSkillInfo
();
76
~psSkillInfo
();
77
79
// void *operator new(size_t);
81
// void operator delete(void *);
82
83
PSSKILL
id
;
84
csString
name
;
85
csString
description
;
86
int
practice_factor
;
87
int
mental_factor
;
88
psMoney
price
;
89
PSSKILLS_CATEGORY
category
;
91
int
baseCost
;
92
csString
costScript
;
93
94
private
:
96
// static PoolAllocator<psSkillInfo> skillinfopool;
97
98
};
99
100
101
102
#endif
103
104
PSSKILL_INT
Definition:
psskills.h:53
psSkillInfo::name
csString name
Definition:
psskills.h:84
psSkillInfo::price
psMoney price
Definition:
psskills.h:88
psSkillInfo::costScript
csString costScript
Keeps the script used to calculate the cost of this skill.
Definition:
psskills.h:92
psSkillInfo
Represents a skill an NPC, player or pet can learn.
Definition:
psskills.h:72
PSSKILL_CHA
Definition:
psskills.h:51
psmoney.h
PSSKILL_NONE
Definition:
psskills.h:46
psSkillInfo::category
PSSKILLS_CATEGORY category
Definition:
psskills.h:89
PSSKILLS_CATEGORY_COMBAT
Definition:
psskills.h:61
psSkillInfo::practice_factor
int practice_factor
Definition:
psskills.h:86
psMoney
Definition:
psmoney.h:44
PSSKILLS_CATEGORY
PSSKILLS_CATEGORY
Definition:
psskills.h:58
psSkillInfo::mental_factor
int mental_factor
Definition:
psskills.h:87
PSSKILL_HEAVYARMOR
Definition:
psskills.h:49
PSSKILL_AGI
Definition:
psskills.h:50
PSSKILLS_CATEGORY_FACTIONS
Definition:
psskills.h:65
PSSKILL_STR
Definition:
psskills.h:54
PSSKILL
PSSKILL
Definition:
psskills.h:44
poolallocator.h
psSkillInfo::id
PSSKILL id
The new operator is overriden to call PoolAllocator template functions.
Definition:
psskills.h:83
mathscript.h
PSSKILL_WILL
Definition:
psskills.h:55
psSkillInfo::psSkillInfo
psSkillInfo()
psSkillInfo::description
csString description
Definition:
psskills.h:85
psSkillInfo::~psSkillInfo
~psSkillInfo()
PSSKILLS_CATEGORY_VARIOUS
Definition:
psskills.h:64
PSSKILLS_CATEGORY_JOBS
Definition:
psskills.h:63
PSSKILL_MEDIUMARMOR
Definition:
psskills.h:48
PSSKILL_END
Definition:
psskills.h:52
PSSKILLS_CATEGORY_STATS
Definition:
psskills.h:60
PSSKILLS_CATEGORY_MAGIC
Definition:
psskills.h:62
PSSKILL_LIGHTARMOR
Definition:
psskills.h:47
psSkillInfo::baseCost
int baseCost
The base cost that this skill requires. Used to calculate costs for next rank.
Definition:
psskills.h:91
server
bulkobjects
psskills.h
Generated on Sat Jun 19 2021 05:00:33 for Planeshift by
1.8.11