2 * nazghul - an old-school RPG engine
3 * Copyright (C) 2007 Gordon McNutt
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Foundation, Inc., 59 Temple Place,
17 * Suite 330, Boston, MA 02111-1307 USA
20 * gmcnutt@users.sourceforge.net
28 * Skills are grouped into skill sets. Within a skill set, each skill has a
29 * minimum level at which it may be used. Multiple skill sets may reference the
30 * same skill, and each may have its own min level. So whereas skill structs
31 * are shared across skill sets, skill_set_entry structs are unique to a skill
32 * set. For example, a detect trap skill may be part of both a rogue skill set
33 * and a ranger skill set, but the rogue can use the skill at level 2 whereas
34 * the ranger must be level 4.
37 struct list list; /* list of all skill_sets in the session */
38 char *name; /* name of the skill set, eg "Ranger" */
39 struct list skills; /* list of skill_set_entry structs */
40 int refcount; /* memory management */
43 extern struct skill_set *skill_set_new();
44 extern void skill_set_ref(struct skill_set *skset);
45 extern void skill_set_unref(struct skill_set *skset);
46 extern void skill_set_set_name(struct skill_set *skset, char *name);
47 extern void skill_set_add_skill(struct skill_set *skset, struct skill *skill,